<% %>
code blocks provide a powerful way to custom manipulate the text output returned from an ASP.NET page, they do not provide a clean HTML programming model.
As the previous sample illustrates, developers using only <% %>
code blocks must custom manage page state between round trips and custom interpret posted values.
The following list gives some comments about the program:
string
with the value “a sample.”
<a href="example?string=a sample">string sample</a>Query strings are also generated by sending a form or by a user typing a query into the address box of the browser.
Nothing
to a variable sets it to the default value for its declared type.