Hi.
I am trying to come up to speed with ASP.NET and am translating some of my old asp files. I have a few questions here.
1)
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#/ASP.NET? The compiler keeps telling me that
"I need to quote values differently inside a <%..value..%>
block"
2) My second question is the question of tag repetition. Is there any way around this. My default page has a if... then... else statement that checks for browser type and displays accorgingly. so:
If (browserversion)
<head>
display information
</head>
if (browserversion)
<head>
display information
</head>
and so on. ASP.NET compalins about the tag repetition which
i am not sure how to get around.
Thanks inadvance.
Thanks in advance.
Peter
I am trying to come up to speed with ASP.NET and am translating some of my old asp files. I have a few questions here.
1)
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#/ASP.NET? The compiler keeps telling me that
"I need to quote values differently inside a <%..value..%>
block"
2) My second question is the question of tag repetition. Is there any way around this. My default page has a if... then... else statement that checks for browser type and displays accorgingly. so:
If (browserversion)
<head>
display information
</head>
if (browserversion)
<head>
display information
</head>
and so on. ASP.NET compalins about the tag repetition which
i am not sure how to get around.
Thanks inadvance.
Thanks in advance.
Peter