Request.QueryString

S

Sonny Sablan

Why doesn't this work? And how do I do something similar to this. I want to actually build the value into a hyperlink on the receiving page.

<script runat=server>
Dim Cat As String = Request.QueryString("CatID")

</script>

<HTML>
<BODY>

<%Response.Write(Cat)%>

</BODY>
</HTML>


Thanks

Sonny
--
 
J

Joerg Jooss

Sonny said:
Why doesn't this work? And how do I do something similar to this. I
want to actually build the value into a hyperlink on the receiving
page.

<script runat=server>
Dim Cat As String = Request.QueryString("CatID")

</script>

<HTML>
<BODY>

<%Response.Write(Cat)%>

</BODY>
</HTML>

Why don't you go the ASp.NET way and use a HTML control or a HyperLink
control?

Cheers,
 
N

Nathan Sokalski

Just a guess, but it probably interprets the part between the scripts as Javascript, but the Response.Write(Cat) as VBScript. I would suggest putting them both together, there is no reason to separate them. do something like:

<%Response.Write(Request.QueryString("CatID"))%>

and just ditch the script tags and the stuff between them. Note: I am just assuming this from what I can tell from your code, but if you are an ASP programmer rather than an ASP.NET programmer, you might get more help at the following newsgroups:

microsoft.public.inetserver.asp.general
microsoft.public.inetserver.asp.db
microsoft.public.inetserver.asp.components
--
Nathan Sokalski
(e-mail address removed)
www.nathansokalski.com
Why doesn't this work? And how do I do something similar to this. I want to actually build the value into a hyperlink on the receiving page.

<script runat=server>
Dim Cat As String = Request.QueryString("CatID")

</script>

<HTML>
<BODY>

<%Response.Write(Cat)%>

</BODY>
</HTML>


Thanks

Sonny
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top