Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Invalid/Missing QueryString - How to react?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Kovac - 25 Jun 2007 14:02 GMT
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
Masudur - 25 Jun 2007 14:53 GMT
> Hi!
>
[quoted text clipped - 8 lines]
>
> 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
Raj - 25 Jun 2007 19:21 GMT
Displa the error message and call Response.End()

> > Hi!
> >
[quoted text clipped - 22 lines]
> Masudur
> http://munnacs.110mb.com
Joe Kovac - 26 Jun 2007 06:18 GMT
> 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

>>> Hi!
>>>
[quoted text clipped - 21 lines]
>> Masudur
>> http://munnacs.110mb.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.