In classic asp(using vb) I can declare variables like this.
Expand|Select|Wrap|Line Numbers
- <%
- Dim var1 as string ="My Var Value"
- %>
Expand|Select|Wrap|Line Numbers
- <%=var1%>
How can I do the same thing in ASP.NET(1.1).What i need really I need to Declare the var1 at the codbehind and need to print it in a HTML Form element
Thanks!