473,386 Members | 1,758 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,386 software developers and data experts.

Error Handling / ASP.NET / QueryString

Hello

I have an application, that runs on asp.net. Now it happens sometimes, that
an error occured, and I redirect in the web.config the user to my custom
error page

<customErrors mode="On" defaultRedirect="/error.asp" />

I redirect to the asp page, because the one and only error we have is that
the database is not available (firewall-management, problems with firewall,
etc). so, the idea is, the user comes to the error page, there is a timeout
of about 3 seconds, and will be redirected back to the page where he comes
from. So this currently works, but the problem is, if the error page is a
page like mypage.aspx?id=233 so i don't know how to get the QueryString of
the error page.

does someone have an Idea how to solve this

Patrick


Nov 19 '05 #1
1 1103
Hi Patrick,

Not able to understand your Question.

Do you want to know huv to extract the querystring value from url...?

if it is so...then you can use the following

ErrorId = Request.Quesrysting("id")
Cheers,

Jerome. M

"Patrick" wrote:
Hello

I have an application, that runs on asp.net. Now it happens sometimes, that
an error occured, and I redirect in the web.config the user to my custom
error page

<customErrors mode="On" defaultRedirect="/error.asp" />

I redirect to the asp page, because the one and only error we have is that
the database is not available (firewall-management, problems with firewall,
etc). so, the idea is, the user comes to the error page, there is a timeout
of about 3 seconds, and will be redirected back to the page where he comes
from. So this currently works, but the problem is, if the error page is a
page like mypage.aspx?id=233 so i don't know how to get the QueryString of
the error page.

does someone have an Idea how to solve this

Patrick


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andy Kowaluk | last post by:
I have an intranet site that connects to an access database using ASP (Javascript). > Currently, when an user attempts to enter a duplicate value into the > database it is rejected and the user is...
10
by: John . | last post by:
I have an error handling routine that emails me the Err.Source, Err.Nbr, and Err.Description in the event of an error. How can I include the line number of the error as well and the filename? ...
4
by: Eugene Anthony | last post by:
One problem with the code bellow is after this code conn.qDupUser p1,rs I added: set rs = nothing to test the error handling capability.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.