Jump to content
Sign in to follow this  
BOS

Problem with saving session state from the previous form to the next

Recommended Posts

Hello Everyone,I need help one this of how how to combine the Response.Direct from FORM1 and FROM2 to FORM3 in saving session state.For example: FORM1 send to FORM2 with the informations link transid ID, username, password etc and on FORM2 to FORM3, it shoulds carry information from FORM1 plus FORM2 to FORM3, it shows on the URL link that it carries over to the next form but not to third form, I want to gets all the information from FORM1 and along with information from FORM2 to FORM3, BUT it losts the saving state, I can get the information form FORM2 on FORM3 but can't get userID , username, password, requestortype, requestorname from FORM1, So is there a way to get it directly from FORM1 on FORM3. Below is my two called from FORM1 to FORM2 to FORM3, SEE the URL link, It losts information from FORM1 in 2nd URL link on the 3rd formResponse.Redirect(("regionbank.aspx")+ "?transid=" + Session["userid"] + "&username=" + Session["user"] + "&password=" + Session["password"]+ "&requesttype=" + "&requestorname=" + iptName.Value + "&email=" + iptEmail.Value);http://localhost/webmap/regionbank.aspx?tr...l=kevin@123.comFORM2.aspx , I want to carry address information on the form along with information from FORM1 to FORM3, but it shows in the URL link the information from FORM1 get lost from the saving Session state, Can someone show me how to combine 2 information from FORM1 and plus information on FORM2 to FORM3, I'm stuck with this, and can't get the email and requestor name from the FORM1 on FORM3. I really needs help on this ....Response.Redirect(ConfigurationSettings.AppSettings.Get("MapInforWebPath") + "?transid=" + Session["userid"] + "&username=" + Session["user"] + "&password=" + Session["password"] + "&requesttype=" + "&requestorname=" + Session["requestorname"] + "&email=" + Session["email"] + "&streetnumber=" + TextBoxSiteAddNum.Text + "&streetname=" + TextBoxSiteAddStreetName.Text + "&streettype=" + TextBoxSiteAddName2.Text + "&city=" + TextBoxSiteAddCity.Text + "&state=" + TextBoxSiteAddSt.Text + "&zip=" + TextBoxSiteAddZip.Text);http://localhost:8080/firstsearch/FirstSea...amp;city=NORWOO

Share this post


Link to post
Share on other sites

(I could not fully understand your problem. Sorry!)Hi, I hope my suggestion could help.I want to ask how you transfer the text from the form>1. <form method="get">2. <form method="post">if you're using "get" method,Request.QueryString("...")should be used.if you're using "post" method,Request.Form("...")should be used.

Share this post


Link to post
Share on other sites

You need to save the information from the first form either into the session or include it in the second form, so that the third form has access to whatever it's looking for.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...