| |
| |
|
Summary
Server.Request gives access to the values in the Request.QueryString and Request.Form collections.
The values can be used to build URL's or in a javascript to perform client based tasks based on querystring values.
The values can also be used with if/else tags.
|
|
Example of usage
The following example illustrates how to use the Server.Request tag in a template given the URL http://www.dynamicweb.dk/Default.aspx?ID=904&q=dynamicweb:
<!--@If Defined(Server:Request.q)-->
You searched for "<!--@Server:Request.q-->"...:
<!--@EndIf(Server:Request.q)-->
|
|
Remarks
The key should always be in lowercase no matter what the casing in the URL is.
So Default.aspx?ID=123 would result in this template tag:
<!--@Server:Request.id-->
And not
<!--@Server:Request.ID-->
|