Convert Classic ASP line to ASP.NET

joe_pool_is

Well-known member
Joined
Jan 18, 2004
Messages
451
Location
Texas
With this in my code at the top of the page:
Code:
Dim str1Err = "This is required."
,my
old, Classic ASP site uses this:
Code:
<span><%Response.Write(str1Err)%>
How do I do this in ASP.NET?


"str1Err" is still defined in the ASP.NET version, but it seems to be out of scope. Could someone show me the way?


I tried this:
Code:
<span><script runat="server" type="text/VB">Response.Write(str1Err)</script>
but then I get that Response is not declared.


Using VS2005 Professional.

Thanks.
 
Back
Top