I have a Master page that have an Image Button and a GridView.
<asp:ImageButton ID="ImageButton2" runat="server" Height="48px" ImageUrl="~/IconsPack/Add.png" ToolTip="Add Record" CssClass="morph" Width="48px"/>
<asp:GridView ID="GridView1" runat="server" CssClass="EU_DataTable" EmptyDataText="No Data Available.">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
In my content page (.aspx) I am able to attach a data source to my gridview and it works good. Where is need some help is .. I would like to handle the events for the image button (as well as interacting with the gridview) in my CONTENT PAGE (.aspx) Again, the image button and the gridview are in the master and it will be populate when the content page is load. An example of what i would like to do .. the grive view has a check box inside..so i want to check it for a particular row and click the imagebutton to delete that row. It might sound a little confusing.. if anyone dont understand .. i can explain further. please assist..im lost.
You can do like this:
In the masterpage codebehind:
And in the content page: