473,320 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
2 2154
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve Drake | last post by:
All, I am trying to open a word document and get all the properties using .NET (c#), if I create the wordapp, call the correct methods I get invalid cast (see code examples), but if I create a...
0
by: Robert Schneider | last post by:
Hello everybody, we have the following problem with our Java application: Within our app we have connection pool for JDBC connections which always should be opened. We need this since several...
1
by: gane kol | last post by:
Hi I am using DES algorithm. I am getting an error message in a few cases of the querystring Error Message : Length of the data to decrypt is invalid. Error Method : System.String...
6
by: sviau | last post by:
since rewriting our site from asp to asp.net, weve receveid many complaints from users stating that they get invalid urls, and cant access certain pages of our site nothing has changed in our...
0
by: Brian | last post by:
I've deployed a 'URL rewriter' version of our application almost two months ago and it is working great (.NET 1.1, Win2k, IIS5). Since then, I've gotten just FOUR exceptions that look like this: ...
9
by: .Net Sports | last post by:
I get an incorrect syntax error pointing to the semicolon when I run this sql statement with a dynamic querystring (geid is primary key integer datatype): sql="SELECT firstname,lastname from...
2
by: sree reddy | last post by:
..cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls;
2
by: darkcode | last post by:
I'm using the below code to pass data to an old asp page. The people at the asp server location can se the request in their logs but according to them there is no ? after .asp wich makes the asp page...
3
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
help, I'm trying to access a stored procedure The stored procedure works fine when run from the server) the code is below - CREATE PROCEDURE updatepricing @siteid INT, @siteid2 INT, @siteid3...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.