Click here to Skip to main content
15,849,182 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to cutomise a Usercontrol Pin
Abhishek Sur4-Nov-09 22:00
professionalAbhishek Sur4-Nov-09 22:00 
GeneralRe: How to cutomise a Usercontrol Pin
FEMDEV5-Nov-09 0:55
FEMDEV5-Nov-09 0:55 
GeneralRe: How to cutomise a Usercontrol Pin
alaminfad7-Nov-09 20:34
alaminfad7-Nov-09 20:34 
GeneralRe: How to cutomise a Usercontrol Pin
Abhishek Sur8-Nov-09 2:47
professionalAbhishek Sur8-Nov-09 2:47 
QuestionHow to redirect Url Dynamically Pin
Hari19194-Nov-09 21:33
Hari19194-Nov-09 21:33 
AnswerRe: How to redirect Url Dynamically Pin
Abhishek Sur4-Nov-09 22:35
professionalAbhishek Sur4-Nov-09 22:35 
GeneralRe: How to redirect Url Dynamically Pin
Nishant Singh5-Nov-09 1:09
Nishant Singh5-Nov-09 1:09 
QuestionDo I need to call return statement after a Response.Redirect method ? Pin
Nadia Monalisa4-Nov-09 21:24
Nadia Monalisa4-Nov-09 21:24 
Hi,

In my asp.net web form's page_load event, I want to check if the query string 'id' is there or not. If not, then transfer the user to another page. Now, I am using this code.

protected void Page_Load(object sender, EventArgs e)
     {
           if (Request.QueryString["id"] == null)
           {
               Response.Redirect(ResolveUrl("~/Projects"));
               return;
           }

           int x = 5;
           int y = 4;
           doSomething(x,y);
     }


Now, my question is, DO I NEED TO CALL THE 'return' STATEMENT after Response.Redirect(ResolveUrl("~/Projects"));
call ? Wont the page automatically die after this Redirect method call ? Thanks.
AnswerRe: Do I need to call return statement after a Response.Redirect method ? Pin
padmanabhan N4-Nov-09 22:23
padmanabhan N4-Nov-09 22:23 
AnswerRe: Do I need to call return statement after a Response.Redirect method ? Pin
m@dhu4-Nov-09 22:55
m@dhu4-Nov-09 22:55 
AnswerRe: Do I need to call return statement after a Response.Redirect method ? Pin
Nishant Singh5-Nov-09 1:01
Nishant Singh5-Nov-09 1:01 
AnswerRe: Do I need to call return statement after a Response.Redirect method ? Pin
sandamalsilva5-Nov-09 6:54
sandamalsilva5-Nov-09 6:54 
GeneralRe: Do I need to call return statement after a Response.Redirect method ? Pin
Nadia Monalisa5-Nov-09 13:20
Nadia Monalisa5-Nov-09 13:20 
Questionquery Pin
mylogics4-Nov-09 21:20
professionalmylogics4-Nov-09 21:20 
AnswerRe: query Pin
SeMartens4-Nov-09 21:22
SeMartens4-Nov-09 21:22 
GeneralRe: query Pin
mylogics4-Nov-09 21:26
professionalmylogics4-Nov-09 21:26 
GeneralRe: query Pin
SeMartens4-Nov-09 21:28
SeMartens4-Nov-09 21:28 
GeneralRe: query Pin
mylogics4-Nov-09 22:06
professionalmylogics4-Nov-09 22:06 
GeneralRe: query Pin
SeMartens4-Nov-09 22:14
SeMartens4-Nov-09 22:14 
AnswerRe: query Pin
FEMDEV5-Nov-09 0:58
FEMDEV5-Nov-09 0:58 
Questionhow to replace null in SQL left join? Pin
Subin Mavunkal4-Nov-09 20:34
Subin Mavunkal4-Nov-09 20:34 
AnswerRe: how to replace null in SQL left join? Pin
dan!sh 4-Nov-09 21:19
professional dan!sh 4-Nov-09 21:19 
QuestionDo you see anything wrong with this code? Pin
AlexeiXX34-Nov-09 18:46
AlexeiXX34-Nov-09 18:46 
Questionhow to keep the session objects value for a long time. Pin
santu3214-Nov-09 18:00
santu3214-Nov-09 18:00 
AnswerRe: how to keep the session objects value for a long time. Pin
_Damian S_4-Nov-09 18:24
professional_Damian S_4-Nov-09 18:24 

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.