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
--