开发者

Getting values from one aspx page to other

Hi I have two aspx pages page1.aspx and page2.aspx. I have an InsertButton on page1. when I click Insert,I am opening page2.aspx using javasript( window.open). Now, in page2, i am giving some input in textboxes. when click on OK button on page2,that page has to be closed and I have to use those input开发者_Python百科s in page1. How can I do this..

Could some one help me pls?? (I tried using session. But It didn't wrk for me.)

thanks,


try storing the values in page2.aspx in session variables.it will definitely work


its so simple....first you must bring that specified value to a session

like,,,, session["PID"]=text1.text.ToString();

after that you must declare a public string/int/any variable on the another page(where u want to get the session value)

then pass the session["PID"] to the publically declared variable(public string VARNAME)

like,,,,,, VARNAME=Session["PID"].Tostring();

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜