Good day
I won't to ask one thing and be very gratefull if anybody give me a sollution.
I have Master page and contentplace holder.
In contentplace holder i have image button and when these button is clicked i won't to make one panel in masterpage visible.
I don't now how to catch event of these imagebutton in pageload of masterpage.
thx in advance.
Master page
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kunal VaishyaRank #990 · 2K reputationPosted Apr 23, 2012, 9:33 AM EDT
void Page_Load() { // Gets a reference to a TextBox control inside // a ContentPlaceHolder ContentPlaceHolder mpContentPlaceHolder; ImageButton ImageButton1; mpContentPlaceHolder = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1"); if(mpContentPlaceHolder != null) { ImageButton1 = (ImageButton) mpContentPlaceHolder.FindControl("ImageButton1"); ImageButton1.Click += new EventHandler(ImageButton1_Click); } }