Convert Classic ASP line to ASP.NET

joe_pool_is

Contributor
Joined
Jan 18, 2004
Messages
507
Location
Longview, TX [USA]
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)%></span>
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></span>
but then I get that Response is not declared.


Using VS2005 Professional.

Thanks.
 
Back
Top