Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

from vbScript to C Sharp

Status
Not open for further replies.

dushkin

Programmer
Mar 28, 2002
90
US
Hi.

For those of you with some knowledge of C#, I am wondering why "<% value %>" is causing so many problems when i am trying to translate a VBScript to C#. For example, what would

src="project/navBar.asp?url=<%=Server.URLEncode(Request.QueryString("url"))%>"

look like translated to C#? The compiler keeps telling me
that

"I need to quote values differently inside a <%..value..%>
block"

Is there a dot Net translation for this block that i am not aware of?

Thanks in advance.
Peter
 
This is less of a VBScript to C# issue than it is an ASP to ASP.Net issue. Have you tried asking in the ASP.Net forum yet? forum855
 
you are right. i was wondering about the appropriate forum. i'll post there. thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top