Click here to Skip to main content
15,867,453 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I intend to Pin
Abdulhafeezo6-Jul-09 5:01
Abdulhafeezo6-Jul-09 5:01 
GeneralRe: I intend to Pin
Abhijit Jana6-Jul-09 6:18
professionalAbhijit Jana6-Jul-09 6:18 
GeneralRe: I intend to Pin
Abdulhafeezo6-Jul-09 7:30
Abdulhafeezo6-Jul-09 7:30 
AnswerRe: I intend to Pin
Abhijit Jana6-Jul-09 8:20
professionalAbhijit Jana6-Jul-09 8:20 
QuestionSetting BackColor of pannel Pin
Armandt__6-Jul-09 2:41
Armandt__6-Jul-09 2:41 
AnswerRe: Setting BackColor of pannel Pin
DoctorMick6-Jul-09 2:49
DoctorMick6-Jul-09 2:49 
GeneralRe: Setting BackColor of pannel Pin
Armandt__6-Jul-09 3:02
Armandt__6-Jul-09 3:02 
QuestionSession Problem Pin
dev sheoran6-Jul-09 1:46
dev sheoran6-Jul-09 1:46 
Hi All,

I have two registration form. On filling the first form, a session is created and the user is redirected to the second page. But on second page session becomes null.
I have debug the code and session is successfully created on first page but when redirected to second page session automatically becomes null.

Why this is happening?

Here is the code :

Page1.aspx.cs :
---------------
protected void btnSaveNext_Click(object sender, ImageClickEventArgs e)
{

try{

Session["RowId"] =rowID;

Response.Redirect("Page2.aspx", false);

}

catch{}

}


Page2.aspx.cs :
---------------

protected void Page_Load(object sender, EventArgs e)
{

if (Session["RowId"] == null )
{
Response.Redirect("login.aspx", false);
}

}


Thanks,
AnswerRe: Session Problem Pin
Manas Bhardwaj6-Jul-09 1:52
professionalManas Bhardwaj6-Jul-09 1:52 
GeneralRe: Session Problem Pin
dev sheoran6-Jul-09 2:18
dev sheoran6-Jul-09 2:18 
AnswerRe: Session Problem Pin
DoctorMick6-Jul-09 2:51
DoctorMick6-Jul-09 2:51 
AnswerRe: Session Problem Pin
Baran M6-Jul-09 19:56
Baran M6-Jul-09 19:56 
GeneralRe: Session Problem Pin
dev sheoran6-Jul-09 20:55
dev sheoran6-Jul-09 20:55 
Questionhow to stop postback of asp button which is havin client side and serverside events.... Pin
tanvi15086-Jul-09 1:40
tanvi15086-Jul-09 1:40 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
Manas Bhardwaj6-Jul-09 1:48
professionalManas Bhardwaj6-Jul-09 1:48 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
Vimalsoft(Pty) Ltd6-Jul-09 1:49
professionalVimalsoft(Pty) Ltd6-Jul-09 1:49 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
dan!sh 6-Jul-09 2:11
professional dan!sh 6-Jul-09 2:11 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
Christian Graus6-Jul-09 2:13
protectorChristian Graus6-Jul-09 2:13 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
satigar1238-Jul-09 8:05
satigar1238-Jul-09 8:05 
QuestionWhy this error always comes Pin
KhandelwalA6-Jul-09 1:36
KhandelwalA6-Jul-09 1:36 
AnswerRe: Why this error always comes Pin
Manas Bhardwaj6-Jul-09 1:46
professionalManas Bhardwaj6-Jul-09 1:46 
AnswerRe: Why this error always comes Pin
Christian Graus6-Jul-09 2:14
protectorChristian Graus6-Jul-09 2:14 
GeneralRe: Why this error always comes Pin
Manas Bhardwaj6-Jul-09 3:05
professionalManas Bhardwaj6-Jul-09 3:05 
QuestionOpen and save file from SQL Database Pin
Difink6-Jul-09 1:31
Difink6-Jul-09 1:31 
AnswerRe: Open and save file from SQL Database Pin
Manas Bhardwaj6-Jul-09 1:56
professionalManas Bhardwaj6-Jul-09 1:56 

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.