Click here to Skip to main content
15,903,523 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
On button1_Click (in Default2.aspx) I want to hide a TextBox1(in Default1.aspx)

ie.
How to make the visible-Property of TextBox1(in Default1.aspx) public.
and how to use it in button1_Click (in Default2.aspx) to hide the textbox.
Posted
Comments
Pandya Anil 10-Nov-11 4:59am    
are you transfering the page from Default2.aspx to Default1.aspx at this point ?

1 solution

in web applications, untill you are not on Default1.aspx. you can not access the page members.. from another page (Default2.aspx), because the page (and its members) are not yet initialised.

but you can access your previous page with cross page posting. means while you land on Default1.aspx redirected from Default2.aspx, then you can access Default2.aspx's last state.

follow the link to know how to use cross page posting.


http://msdn.microsoft.com/en-us/library/ms178139.aspx[^]

mark as answer if solves your problem
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900