Click here to Skip to main content
15,885,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a webpage, say abc.aspx and another webpage, say xyz.aspx. which are child page of master page. Now, page abc.aspx has a button with event click. similarly, page xyz.aspx also has button with same event. Now, when I click on button of xyz.aspx page, the event inside page abc.aspx is to be executed from that button. The button of page abc.aspx executes javascript file. how can i do so??
Thanks in advance.
Posted
Comments
Kornfeld Eliyahu Peter 2-Jul-14 3:29am    
Sorry to say that, but you first have to learn what web development is, how it works, how ASP.NET engine creates web pages, what client/server separation means in the web and much more...
Thanks7872 2-Jul-14 5:11am    
In addition to what Kornfeld stated above, why such requirement at the first place?

1 solution

1.As I know, you cannot invoke an event form another page.

2.What you can do is to move your JavaScript code into a method and put that method into a file that is accessible from both pages. Then in both places to invoke the JavaScript method.
 
Share this answer
 
Comments
Codes DeCodes 2-Jul-14 3:43am    
thanks for your comment raul
Raul Iloc 3-Jul-14 1:35am    
Welcome, I am glad that I could help you!

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