467,116 Members | 1,167 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,116 developers. It's quick & easy.

Invalid/Missing QueryString - How to react?

Hi!

I have many pages that expect query strings. One of the first things to
do, should be to check if the values of the QueryString are valid.
But how should I react on invalid/missing QueryStrings? Somehow the page
itself should stop rendering any controls and just display an error
message. How would I achieve this? Where should that be done? What are
other possible solutions?

Thanks

Joe
Jun 25 '07 #1
  • viewed: 1943
Share:
2 Replies
On Jun 25, 7:02 pm, Joe Kovac <Joe...@nospam.comwrote:
Hi!

I have many pages that expect query strings. One of the first things to
do, should be to check if the values of the QueryString are valid.
But how should I react on invalid/missing QueryStrings? Somehow the page
itself should stop rendering any controls and just display an error
message. How would I achieve this? Where should that be done? What are
other possible solutions?

Thanks

Joe
Hi Joe

for now i see two solution in my mind...
#1 check for querystring ... if okay proceed or redirect to a error
page saying that invalid access
#2 keep my whole contents in a panel...
check for querystring ... if okay proceed or display ...
else hide content and display a error message....
may be there are some other very smart way...

Thanks
Masudur
http://munnacs.110mb.com

Jun 25 '07 #2
Raj wrote:
Displa the error message and call Response.End()
And what if I still want to see the master page? Response.End() cancels
the processing of everything. Even the master page.

Thanks
Joe
>
"Masudur" wrote:
>On Jun 25, 7:02 pm, Joe Kovac <Joe...@nospam.comwrote:
>>Hi!

I have many pages that expect query strings. One of the first things to
do, should be to check if the values of the QueryString are valid.
But how should I react on invalid/missing QueryStrings? Somehow the page
itself should stop rendering any controls and just display an error
message. How would I achieve this? Where should that be done? What are
other possible solutions?

Thanks

Joe
Hi Joe

for now i see two solution in my mind...
#1 check for querystring ... if okay proceed or redirect to a error
page saying that invalid access
#2 keep my whole contents in a panel...
check for querystring ... if okay proceed or display ...
else hide content and display a error message....
may be there are some other very smart way...

Thanks
Masudur
http://munnacs.110mb.com

Jun 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Steve Drake | last post: by
reply views Thread by Robert Schneider | last post: by
1 post views Thread by gane kol | last post: by
6 posts views Thread by sviau | last post: by
2 posts views Thread by darkcode | last post: by
3 posts views Thread by =?Utf-8?B?R1ROMTcwNzc3?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.