Request.querystring

  • Thread starter Thread starter nina297
  • Start date Start date
N

nina297

Hello I'm a newbie to .net. and having problems posting a value to the
next page. I have this in my code behind page:

url = "BookCategories.aspx?classificationid=" &
Request.QueryString("classificationid") & ""

I go to the next page but it's not getting the classificationid. What
am I doing wrong?

Please help!
 
Well, this may seem like a shocker, but have you checked to see that the
Request.QueryString("classificationid") item you're attempting to add on to
the URL actually holds a value? Try something like
Dim cid as string = Request.QueryString("classificationid")
and see if cid has "something in it".
Peter
 
Try this - - -
When the page loads , create a global (page level) variable to hold the
classificationid
Dim id as string

Then, in your page_load event -
id=Request.QueryString("classificationid")

then use the variable (id) in your string
 
Try this - - -
When the page loads , create a global (page level) variable to hold the
classificationid
Dim id as string

Then, in your page_load event -
id=Request.QueryString("classificationid")

then use the variable (id) in your string
--
David Wier
MVP/ASPInsiderhttp://aspnet101.comhttp://aspexpress.com









- Show quoted text -

Okay thanks for your help but I guess I should have told you I'm using
a bulleted List. I need to make certain the correct bullet is
selected. Can I still do it as such?
 

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

Back
Top