Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: RE: vb.not


Message #1 by "Dan McKinnon" <mddonna@q...> on Fri, 3 May 2002 20:29:51
Thanks a lot Minh. I would have answered you sooner, but for me p2p has 
been offline twice for hours at a time the last couple of days.

My problem was that I was trying to use Request.QueryString in a 
declaration:
<script runat=server>
Dim strDate As String = Request.QueryString("date")
</script>

which is a no-no. It is a declaration, but the Request object isn't 
available in that context. I had to put it in a sub or function for it to 
work. The code I sent in the forum was after I tried everything I knew to 
get it to work, hence the HTTPRequest.QueryString, etc., which isn't 
correct. I tried all the classes and namespaces until I figured out what 
the problem was. Turns out you can still call it like in regular ASP, 
just has to be in a sub. It is humbling, but I will remember next time.

Thanks, you were the only one who answered my post,
Dan

  Return to Index