Click here to Skip to main content
16,004,782 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
workng on a web application, which hav 2 pages
at PAGE 1

i have a button .. i want that when i clik this button

a label which is at PAGE 2... chnge its text.

how can i do this .. plx help!

EDIT: I believe he wants a page opened in one tab to be able to affect a control in a page opened in another tab.
Posted
Updated 1-Apr-12 18:05pm
v2
Comments
Tejas Vaishnav 1-Apr-12 23:58pm    
means both the page will opened in tow different tab and from first page or first tab you click on button and that will effect in your second tab which have your second page...?

i think you what to do like this.. m i right.?

SQL
In general, this doesn't make sense.

When your second page is executing, the first page is gone. It simply no longer exists. There is no label for you to assign to.

Even if you could assign to the label, the previous request is over. The HTML (without the change) has already been sent to the user's browser.


one posssibility is you can use querystring like thing (or other state management concepts for sending data from page1 to page2)redirect the page and assign it to label.
 
Share this answer
 
Well if this what u mean the two pages will be open u can make session and u can make timer to check about the value of session if it have value you can change the text of label .


Best Regards
M.Mitwalli
 
Share this answer
 
HI

You can surly use this but if you don't want any post back use.

ICALLBACKHANDLER


It will help you with out post back assignment to the values because it calls from the serverside

refer

http://www.ajaxmatters.com/2006/05/using-icallbackeventhandler-in-asp-net/[^]

http://msdn.microsoft.com/en-us/library/system.web.ui.icallbackeventhandler.aspx[^]


Hope it will help You

Thanks
 
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