Hello,
I have a Master Page which contains two Content pages named: Default.aspx and Default2.aspx. I want to post a TextBox1 value (in Default.aspx) to Default2.aspx in the Master Pages and all my pages are in ContentPlaceHolder, but it is not working.
Is there Any kind of help?
![]() |
0 |
![]() |
Hi,
you can pass value between two web forms by Query string, session or by using cookie
For query string refer : http://www.codeproject.com/KB/aspnet/QueryString.aspx
Session:
save session in default.aspx
Session("t1")=text1.text
retrieve session as
text2.text = session("t1") in page load of default2.aspx
To know about cookie refer http://www.codeproject.com/KB/aspnet/cookies_in_c_.aspx
Regards,
Haresh Ambaliya
Please remember to mark as "answers" if they help. This can be beneficial to other community members.
![]() |
0 |
![]() |
Thanks hareshambaliya, I did do what you have suggested and now my problem is solved.
Thanks again.
![]() |
0 |
![]() |
Hi,
Can u please mark as "Answer" it will help to other community member
Regards,
Haresh Ambaliya
Please remember to mark as "answers" if they help. This can be beneficial to other community members.
![]() |
0 |
![]() |