Click here to Skip to main content
15,389,918 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to cutomise a Usercontrol Pin
Abhishek Sur4-Nov-09 21:00
professionalAbhishek Sur4-Nov-09 21:00 
GeneralRe: How to cutomise a Usercontrol Pin
FEMDEV4-Nov-09 23:55
MemberFEMDEV4-Nov-09 23:55 
GeneralRe: How to cutomise a Usercontrol Pin
alaminfad7-Nov-09 19:34
Memberalaminfad7-Nov-09 19:34 
GeneralRe: How to cutomise a Usercontrol Pin
Abhishek Sur8-Nov-09 1:47
professionalAbhishek Sur8-Nov-09 1:47 
QuestionHow to redirect Url Dynamically Pin
Hari19194-Nov-09 20:33
MemberHari19194-Nov-09 20:33 
AnswerRe: How to redirect Url Dynamically Pin
Abhishek Sur4-Nov-09 21:35
professionalAbhishek Sur4-Nov-09 21:35 
GeneralRe: How to redirect Url Dynamically Pin
Nishant Singh5-Nov-09 0:09
MemberNishant Singh5-Nov-09 0:09 
QuestionDo I need to call return statement after a Response.Redirect method ? Pin
Nadia Monalisa4-Nov-09 20:24
MemberNadia Monalisa4-Nov-09 20: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 21:23
Memberpadmanabhan N4-Nov-09 21:23 
AnswerRe: Do I need to call return statement after a Response.Redirect method ? Pin
m@dhu4-Nov-09 21:55
Memberm@dhu4-Nov-09 21:55 
AnswerRe: Do I need to call return statement after a Response.Redirect method ? Pin
Nishant Singh5-Nov-09 0:01
MemberNishant Singh5-Nov-09 0:01 
AnswerRe: Do I need to call return statement after a Response.Redirect method ? Pin
sandamalsilva5-Nov-09 5:54
Membersandamalsilva5-Nov-09 5:54 
GeneralRe: Do I need to call return statement after a Response.Redirect method ? Pin
Nadia Monalisa5-Nov-09 12:20
MemberNadia Monalisa5-Nov-09 12:20 
Questionquery Pin
mylogics4-Nov-09 20:20
professionalmylogics4-Nov-09 20:20 
AnswerRe: query Pin
SeMartens4-Nov-09 20:22
MemberSeMartens4-Nov-09 20:22 
GeneralRe: query Pin
mylogics4-Nov-09 20:26
professionalmylogics4-Nov-09 20:26 
GeneralRe: query Pin
SeMartens4-Nov-09 20:28
MemberSeMartens4-Nov-09 20:28 
GeneralRe: query Pin
mylogics4-Nov-09 21:06
professionalmylogics4-Nov-09 21:06 
GeneralRe: query Pin
SeMartens4-Nov-09 21:14
MemberSeMartens4-Nov-09 21:14 
AnswerRe: query Pin
FEMDEV4-Nov-09 23:58
MemberFEMDEV4-Nov-09 23:58 
Questionhow to replace null in SQL left join? Pin
Subin Mavunkal4-Nov-09 19:34
MemberSubin Mavunkal4-Nov-09 19:34 
AnswerRe: how to replace null in SQL left join? Pin
dan!sh 4-Nov-09 20:19
professional dan!sh 4-Nov-09 20:19 
QuestionDo you see anything wrong with this code? Pin
AlexeiXX34-Nov-09 17:46
MemberAlexeiXX34-Nov-09 17:46 
Questionhow to keep the session objects value for a long time. Pin
santu3214-Nov-09 17:00
Membersantu3214-Nov-09 17:00 
AnswerRe: how to keep the session objects value for a long time. Pin
_Damian S_4-Nov-09 17:24
professional_Damian S_4-Nov-09 17: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.