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

customerror

Hello,

I want to redirect to errorpage.aspx on a deplyed application and does not
work...

can anybody help..

thank u
Nov 18 '05 #1
2 1177
Have you tried to do this in the Global.asax file?

protected void Application_Error(Object sender, EventArgs e)

{

Response.Redirect("ERROR.aspx")

}

"Robert M" <ro******@hotmail.com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...
Hello,

I want to redirect to errorpage.aspx on a deplyed application and does not work...

can anybody help..

thank u

Nov 18 '05 #2
How are you doing it?
Either response.redirect(page.aspx) on error or server.transfer will work.
You may want to use the webconfig file's customerrors tag setting
defaultRedirect attribute to the intended page as well.

regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Robert M" <ro******@hotmail.com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...
Hello,

I want to redirect to errorpage.aspx on a deplyed application and does not work...

can anybody help..

thank u

Nov 18 '05 #3

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

Similar topics

0
by: Nadagouda | last post by:
Hi, Im trying http:\\localhost\WebService1\Service1.asmx?wsdl=. I am getting http 500 internal error instead of that i want to use mycustom page. I tried all the following options. 1. IIS...
0
by: Mark | last post by:
I'd like to avoid displaying the nasty built-in ASP.NET error for a 401.2, access denied. We're using windows authentication. The error message that is displayed by default is printed below. I'd...
1
by: John Knoop | last post by:
Hi I've designed my own 404 not found error page. And it works fine if I type in this URL: www.mydomain.com/doesntexist.aspx However, if I type in: www.mydomain.com/doesntexist.html
1
by: Han | last post by:
Has any one ran into this problem? I'm trying to debug an error on a remote ASP.NET server. I've set <customErrors mode = "Off"> in the web.config but it does not give a detailed, non-filtered...
0
by: Richard | last post by:
Hi, I have deployed a simple asp.net application to a hosted server. I had it working OK but I wanted to make a change and somehow it has gotten into a state where it reports an error but acts as...
0
by: Cezar | last post by:
Hello, I downloaded and installed the Framework on a server but when I try to run a simple .NET Web application, a simple aspx page with one label, I get this error. The customError tag on...
0
by: Cezar | last post by:
Hi, This is a repost. I installed the framework on a W2K server and when I try to run a simple .net application, an aspx page with a label, I get this Runtime Error: ---- Runtime Error ...
3
by: Mark | last post by:
I'd like to avoid displaying the nasty built-in ASP.NET error for a 401.2, access denied. We're using windows authentication. The error message that is displayed by default is printed below. I'd...
4
by: Paul | last post by:
I have written a custom dll that I put inside the /bin directory of a production IIS server. Inside the config file of the web application i have added the following setting: <httpModules>...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.