By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,191 Members | 1,411 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,191 IT Pros & Developers. It's quick & easy.

session variables not set

P: n/a
Hi all,

I am having an issue with session variables.

setting the sessions:
HttpContext.Current.Session["A_Applicant_N_surname"] =
A_Applicant_N_surname.Text;
HttpContext.Current.Session["A_Applicant_N_givenname"] =
A_Applicant_N_givenname.Text;
HttpContext.Current.Session["A_Applicant_N_dob"] =
A_Applicant_N_dob.Text;

then I have a button that calls this function - it works initially and
sets it in the first instance but when I try and reset it to something
else (change the textbox that contains the value... It doesnot work...

private void btnPrintPDF_Click(object sender, System.EventArgs e)
{
setSessionVariables();
Response.Redirect(
HttpContext.Current.Session["NextURL"].ToString() );
}

Doesn't seem to work...

ANY help would be greatly appreciated.

Cheers,
Michael.
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.