joe_pool_is Posted April 1, 2008 Posted April 1, 2008 With this in my code at the top of the page:Dim str1Err = "This is required." ,my old, Classic ASP site uses this:<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:<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. Quote Avoid Sears Home Improvement
Diesel Posted April 1, 2008 Posted April 1, 2008 <span><%= str1Err %></span> Make sure the variable scope is protected (Friend in vb?) Quote
joe_pool_is Posted April 1, 2008 Author Posted April 1, 2008 Thanks! That helps a lot! Quote Avoid Sears Home Improvement
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.