Home > Response Redirect Not > Response.redirect Not Working Asp.net 4.0

Response.redirect Not Working Asp.net 4.0

Does this happen with just the mnuLogin menu or with all other menus? I just sent Microsoft some feedback on the example I was using to point out that us newbies lose a lot of time over omissions like that. Anyone have any suggestions what else we can try? try { Response.Redirect("AdminDashboard.aspx"); } catch (ThreadAbortException te) { //do nothing or handle as required } Hope that helps! this contact form

Has "the destruction of the space shuttle Challenger... The size of the output (xml) was too big, just over 4.0 kb, since I retrieved all nested groups that the user belonged to. I'll just end up rejecting anyways.* * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft * * How to Use Your Email Password Forgot your password?

Add a Solution Add your solution here B I U S small BIG code Plain TextC++CSSC#Delphi / PascalF#HTML / XML / ASPJavaJavascriptObjective-CSQLSwiftPerlPHPPythonVBXMLvar < > & link [^] encode untab case indent Utensil that forms meat into cylinders How big can the input to Pythons input() function be? My MP contains an asp:Menu item where all the subsequent CP's are called from. always include those details in your question rahulDer 18-Feb-14 2:59am it dosnt display any error,directly go to catch part Member 10434230 18-Feb-14 3:02am Rahul, please check the

This might help finding out if your current page has a problem. . Today I learned! –rossisdead Oct 24 '11 at 12:34 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Reply zhshqzyc Member 181 Points 588 Posts Re: Response.Redirect is not working Apr 19, 2012 08:44 AM|zhshqzyc|LINK I already used Reponse.Redirect("~/Admin/UserChangePassword.aspx");I set a breakpoint, it did get there(button_click event). Sean Westerfield Web, Application, and Database Developer/I.S.

Check out the rtf-help tutorial General VB Faq Thread Change is the only constant thing. What power do I have as a driver if my interstate route is blocked by a protest? also if you know what the folder is, then why not use what the guy said above Reponse.Redirect("~/Admin/UserChangePassword.aspx"); and set a breakpoint on your button_click event to see if it's getting Stiil not working.

The page loads fine, but won't redirect. if not Super Admin or Admin what u get in role ? Hope someone can help.... Unfortunately, none of these suggestions worked.

Copyright © 2006 - 2014, JustSkins.com 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 you eventually get used to it =P Reply gyclone Member 313 Points 140 Posts Re: Response.Redirect not redirecting Sep 10, 2008 12:35 PM|gyclone|LINK Yeah, I've run into that missing "Imports" statement not just a simple sub. Check out the rtf-help tutorial General VB Faq Thread Change is the only constant thing.

So you write this: Response.Redirect("index.aspx", true); But Response.redirect is not working. weblink How do you know it doesn't work? –Mike Perrenoud Oct 29 '13 at 17:55 try changing Response.Redirect("/") to Response.Redirect("~/") –th1rdey3 Oct 29 '13 at 18:00 Ryan I Try creating a new ASP.NET 4.5 project with one blank page that redirects to Google or something. –Stealth22 Oct 29 '13 at 20:33 | show 5 more comments 2 Answers 2 The thing is, although this may be the last bit of code handling Page_Load, there's still the page processing itself. –Jon Skeet Oct 22 '11 at 7:12 @JonSkeet: Tried

All Rights Reserved. What is a VP Numberâ„¢? Gary, I probably have not but would it be the "Response.Redirect(page, true)" overload? navigate here been linked to insufficient sleep"?

Insidethe submitbutton, I am going to fire anevent to transfer my page to the other one. Because after reaching to response.redirect statement flow comes back to button click where FillGrid is called(). abdul subhan mohammed 18-Feb-14 2:51am have u done debug??

Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are

If this is your first visit, be sure to check out the FAQ by clicking the link above. protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { lblUserName.Text = Session["Employee"].ToString(); lblDate.Text = Convert.ToString(DateTime.Now.ToString("dd-MMM-yyyy")); string role = Session["Role"].ToString(); if (role == "Super Admin" || role Hitchhiker's Guide to Getting Help at VB Forums. if role have values it redirect to AdminDashboard page and if not vlaue in role it automatically go to ClientDashboard page.Then y u add error page in exception.

Not the answer you're looking for? I like to collect them! tg, you are right. his comment is here if user is admin or super admin he will be redirected to AdmnDashboard.aspx nad rest of the users are redirceted to some other page..

I'm technical referent but I lost the lead for technical decisions Visual indicator when a float is too tall What's the meaning of 'Cronenbourg' in the Rick and Morty episode Rick Out of curiousity then, to confirm my suspicion, take out the Try/Catch. And the reason it doesn't throw with false is because that second parameter determines whether or not the thread is aborted. I am not a complete idiot.