ASP
過去我們在ASP
但最近幾年REST風格的網站(或REST Web服務)興起
上面這樣的網址有一些好處
也就是說
除此之外
相較於傳統網址更容易被Google等搜索引擎查詢與檢索
view plaincopy to clipboardprint?
protected void Application_Start(object sender
RouteTable
"TestRoute"
}
protected void Application_Start(object sender
RouteTable
"TestRoute"
}
在Global
網頁(應用程序主控權)將被導引到WebForm
view plaincopy to clipboardprint?
protected void Page_Load(object sender
Response
Page
}
protected void Page_Load(object sender
Response
Page
}
這樣的設計方式
更有趣的是
view plaincopy to clipboardprint?
<asp:LinqDataSource ID="LinqDataSource
ContextTypeName
="UrlRouting
="" TableName="Customers" Where="CompanyName
== @CompanyName">
<WhereParameters>
<asp:RouteParameter Name="CompanyName" RouteKey
="CompanyName" Type="String" />
</WhereParameters>
</asp:LinqDataSource>
<asp:LinqDataSource ID="LinqDataSource
ContextTypeName=
"UrlRouting
="" TableName="Customers" Where="CompanyName
== @CompanyName">
<WhereParameters>
<asp:RouteParameter Name="CompanyName" RouteKey
="CompanyName" Type="String" />
</WhereParameters>
</asp:LinqDataSource>
您會發現
From:http://tw.wingwit.com/Article/program/net/201311/14114.html