I have a master page where in I have a link button. In one of the content pages, I need to hide the linkbutton and replace with image button. The click event handler for image button should exactly do the same thing as the click event of the link button in master page. So is there a way of calling the Master page link button click event handler from the Image button click event handler in Content page?
I have researched and there seem to be a lot in case Master page wants to call the event handler in Content page…
Any inout will be highly appreciated.
Thanks
In your master page’s code behind replace the protected keyword on the event handler to public.
IN your content page use the Master Type Directive
In the code behind for the content page call the Master event handler as follows
Note the code is C#.
I’m looking into calling the master pages event handler more directly