Click here to Skip to main content
15,913,487 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExport data to excel in formatted way Pin
Karan_TN11-Jun-10 1:21
Karan_TN11-Jun-10 1:21 
AnswerRe: Export data to excel in formatted way Pin
Peace ON11-Jun-10 2:28
Peace ON11-Jun-10 2:28 
QuestionHtmlTabHTleRow Pin
siva45511-Jun-10 0:11
siva45511-Jun-10 0:11 
AnswerRe: HtmlTabHTleRow Pin
saini arun11-Jun-10 3:20
saini arun11-Jun-10 3:20 
QuestionLoading controls on page with UpdatePanel Pin
Łukasz Nowakowski10-Jun-10 23:50
Łukasz Nowakowski10-Jun-10 23:50 
AnswerRe: Loading controls on page with UpdatePanel Pin
Brij10-Jun-10 23:56
mentorBrij10-Jun-10 23:56 
GeneralRe: Loading controls on page with UpdatePanel Pin
Łukasz Nowakowski11-Jun-10 0:26
Łukasz Nowakowski11-Jun-10 0:26 
GeneralRe: Loading controls on page with UpdatePanel Pin
Łukasz Nowakowski11-Jun-10 0:37
Łukasz Nowakowski11-Jun-10 0:37 
GeneralRe: Loading controls on page with UpdatePanel Pin
Brij11-Jun-10 2:22
mentorBrij11-Jun-10 2:22 
QuestionCreating foreign key constraints through Sqlcommand.ExecuteNonQuery() Pin
vishnukamath10-Jun-10 23:28
vishnukamath10-Jun-10 23:28 
AnswerRe: Creating foreign key constraints through Sqlcommand.ExecuteNonQuery() Pin
Peace ON11-Jun-10 0:00
Peace ON11-Jun-10 0:00 
QuestionFusion Chart Pin
KhandelwalA10-Jun-10 22:47
KhandelwalA10-Jun-10 22:47 
QuestionHow display Custom Error Page when Javascript Page redirect fails Pin
netnest10-Jun-10 21:46
netnest10-Jun-10 21:46 
Hi,

I am currently redirecting user to a different page, say ABC, using Javascript. Now if my page ABC doesnt exist, i dont want to show 404 page, but custom error page. The custom error page in web.config doesnt work here as page is being redirected from client site. See below me web.config code

<customerrors mode="On" defaultredirect="~/Error.aspx">
<error statuscode="404" redirect="~/PageNotFound.aspx">


On my Webform I have written the following code for redirection using javascript.



Javascript method

function redirectToStaticPage(language)
{
var newPageURL = "http://xyz.aspx";
try
{
window.location = newPageURL;
}
catch(err)
{
txt="There was an error on this page.\n\n";
txt+="Error description: " + err.description + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
}
}

Currently it takes me to http://xyz.aspx which doesnt exist. I want to show in this case custom error page.
Please help ASAP. Thanks
AnswerRe: How display Custom Error Page when Javascript Page redirect fails Pin
Peace ON10-Jun-10 22:17
Peace ON10-Jun-10 22:17 
Questionhow to decide..how much time user use my website...? Pin
koolprasad200310-Jun-10 19:40
professionalkoolprasad200310-Jun-10 19:40 
AnswerRe: how to decide..how much time user use my website...? Pin
Brij10-Jun-10 20:15
mentorBrij10-Jun-10 20:15 
AnswerRe: how to decide..how much time user use my website...? Pin
Peace ON10-Jun-10 21:14
Peace ON10-Jun-10 21:14 
Questionhelp needed with passing parameters Pin
Farraj10-Jun-10 19:07
Farraj10-Jun-10 19:07 
AnswerRe: help needed with passing parameters Pin
m@dhu10-Jun-10 19:40
m@dhu10-Jun-10 19:40 
GeneralRe: help needed with passing parameters Pin
Farraj10-Jun-10 20:26
Farraj10-Jun-10 20:26 
AnswerRe: help needed with passing parameters Pin
Brij10-Jun-10 20:39
mentorBrij10-Jun-10 20:39 
GeneralRe: help needed with passing parameters Pin
Farraj10-Jun-10 20:55
Farraj10-Jun-10 20:55 
GeneralRe: help needed with passing parameters Pin
Brij10-Jun-10 21:15
mentorBrij10-Jun-10 21:15 
QuestionProblem with setting a Hyperlink to DataTextFormatString of RadioButtonList Control Pin
AndyASPVB10-Jun-10 10:46
AndyASPVB10-Jun-10 10:46 
QuestionProblem with CSS Pin
AndyASPVB10-Jun-10 10:33
AndyASPVB10-Jun-10 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.