How to achive this solution for master page event

Posted by Jayakumars under ASP.NET AJAX on 4/3/2012 | Points: 10 | Views : 1531 | Status : [Member] [MVP] | Replies : 1
hi

I have one master page and child page here. my master page have button control
when i click my master page button click i need my child page button event call here how will do this. how to invoke events from master page to child page event.

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com



Responses

Posted by: Rajni.Shekhar on: 4/3/2012 [Member] Bronze | Points: 25

Up
0
Down
Make your master page button event to public virtual

public virtual void mstButton_Click(object sender, EventArgs e){

//your master page code here for thie button click.
}


and override it in content page

public override void mstButton_Click(object sender, EventArgs e){

//your master page code here for thie button click.
}


Try it, hope it will work.


Thanks,
Rajni Shekhar

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response