Posted on: 10/17/2012 9:40:36 AM | Views : 420

Hi Everyone
I have simple question.  
I have two pages PageA and PageB and there are a few texboxes which I am filling up. I want to pass values from PageA to PageB and next - after filling texboxes on PageB -  insert data into to database,  but one value from PageA textbox must be show in PageB label (on PageLoad() function), I am using session for that. For remaining PageA values – HttpContext.
I using session in case of attempt opening PageB without earlier filling form on PageA. I wasn’t able to make this with HttpContext.
Example code on PageB.aspx
 
…. Page_Load(…) { if (Session[“value”] != null) { PageA wf1 = (PageA)Context.Handler; …. and next scripts } else { Response.Redirect(“PageA.aspx”); } } My questions:
1. Is it correct (I mean for “pretty/good code”) that I using two proc ...

Go to the complete details ...