Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...