Hi there,
In classic asp(using vb) I can declare variables like this.
[CODE=asp] <%
Dim var1 as string ="My Var Value"
%>
[/CODE]
And Some Where in my asp page I can print it.Like this,
[CODE=asp]<%=var1%>[/CODE]
Correct ?
How can I do the same thing in ASP.NET(1.1).Wh at i need really I need to Declare the var1 at the codbehind and need to print it in a HTML Form element
Thanks!
In classic asp(using vb) I can declare variables like this.
[CODE=asp] <%
Dim var1 as string ="My Var Value"
%>
[/CODE]
And Some Where in my asp page I can print it.Like this,
[CODE=asp]<%=var1%>[/CODE]
Correct ?
How can I do the same thing in ASP.NET(1.1).Wh at i need really I need to Declare the var1 at the codbehind and need to print it in a HTML Form element
Thanks!
Comment