Passing parameters to a page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

An unbelievably simple question, I assume, but I can't find the answer
anywhere!

How do I access a parameter passed to my page?

Eg, I go to HTTP:..blah..Mypage.aspx?ShowAll

How do a access this, eg:

If ???=ShowAll
What is ???

Thanks
 
the easy answer is to add a value to the querystring:

Mypage.aspx?ShowAll=1

so that it appears in the request query string collection. if you don't want
to pass a value, you will need to parse the querystring yourself.

-- bruce (sqlwork.com)



| An unbelievably simple question, I assume, but I can't find the answer
| anywhere!
|
| How do I access a parameter passed to my page?
|
| Eg, I go to HTTP:..blah..Mypage.aspx?ShowAll
|
| How do a access this, eg:
|
| If ???=ShowAll
| What is ???
|
| Thanks
| --
| David Gordon-Brown
 
Thanks, Everyone. I still can't understand why I could find this in MSDN.
I was probably having a brain fart!

David
 

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