i'm trying change visible setting of panel button click. need second panel become visible when button @ bottom of first panel clicked.
<asp:content id="content3" contentplaceholderid="cphcontent" runat="server"> <asp:panel id="pnl1" runat="server"> <asp:gridview id="gv1" runat="server" autogeneratecolumns="false" cellpadding="0" allowsorting="true" cssclass="grid" visible="true"> <columns> //gv1 columns here </columns> </asp:gridview> <asp:button id="btnmodadd" class="btn btn-primary" runat="server" text="ekle" onclick="btnmodadd_click"> </asp:button> <br /> <div class="datatables_paginate" id="example_info"> <uc1:pagingcontrol id="pcbottom" runat="server" pagingposition="top" /> </div> </asp:panel> <br /> <asp:panel id="pnl2" runat="server" visible="false"> <asp:gridview id="gv2" runat="server" autogeneratecolumns="false" cellpadding="0" allowsorting="true" cssclass="grid" visible="true"> <columns> //gv2 columns here.. </columns> </asp:gridview> </asp:panel>
and c# code of button, quite simple.
public void btnmodadd_click(object sender, eventargs e) { pnl2.visible = true; }
i can't understand i'm missing see here...
edit: ok noticed missed add bind method pageload. noob mistake on part well, still learning :)
Comments
Post a Comment