protected void Page_Load(object sender, EventArgs e) { //------------------------------------------------------------------------------------------------------------------------ if (!IsPostBack) { //------------------------------------------------------------------------------------------------------------------------ // What About Serrion ID if ((Request.QueryString["key"] != "") && (Request.QueryString["key"] != null)) { //------------------------------------------------------------------------------------------------------------------------ // error in url? //No if ((Session[Request.QueryString["key"]].ToString() != "") && (Session[Request.QueryString["key"]].ToString() != null)) { //------------------------------------------------------------------------------------------------------------------------ // Loading Sequrity Question L_SequrityQuestion.Text = MatrimonialMemberShip.GetSequrityQuestion(Session[Request.QueryString["key"]].ToString()); // Add Session Key Into Hiden Feld HF_Session.Value = Request.QueryString["key"]; //------------------------------------------------------------------------------------------------------------------------ } else { //------------------------------------------------------------------------------------------------------------------------ // UserName not Present in Session Server.Transfer("~/Extras/ErrorReport.aspx?id=session"); //------------------------------------------------------------------------------------------------------------------------ } } else { //------------------------------------------------------------------------------------------------------------------------ Server.Transfer("~/Extras/ErrorReport.aspx?id=406"); //------------------------------------------------------------------------------------------------------------------------ } //------------------------------------------------------------------------------------------------------------------------ } }