getting a string from the previous page
-
Hi! I am building a web site, and I stuck at one place(a place for beginners), I have a striing what is filled in one page, and then when the button is clicked, I want to get the string from the previous page and used in my current page, any solutions how I can do that. Thanks ahead
-
Hi! I am building a web site, and I stuck at one place(a place for beginners), I have a striing what is filled in one page, and then when the button is clicked, I want to get the string from the previous page and used in my current page, any solutions how I can do that. Thanks ahead
add that string in ViewState on previose page ViewState["string"]=string; and get it on new page string str= ViewState["string"].tostring(); but you can use it only for one page.
-
Hi! I am building a web site, and I stuck at one place(a place for beginners), I have a striing what is filled in one page, and then when the button is clicked, I want to get the string from the previous page and used in my current page, any solutions how I can do that. Thanks ahead
string stringname = (Request.QueryString["variable"]); or just use sessions, that is a good way of transfering information from page to page so set a session in one page: Session["session1"] = stringname; then get the session if (Session["session1"] != null) { stringname= Session["session1"].ToString(); }
-
add that string in ViewState on previose page ViewState["string"]=string; and get it on new page string str= ViewState["string"].tostring(); but you can use it only for one page.
My dear friend viewstate work on page level......
Deepak Nigam
-
Hi! I am building a web site, and I stuck at one place(a place for beginners), I have a striing what is filled in one page, and then when the button is clicked, I want to get the string from the previous page and used in my current page, any solutions how I can do that. Thanks ahead
you can use postbackurl also......
Deepak Nigam