Member
5 Points
23 Posts
Sep 29, 2018 03:14 PM|ahmedshpt|LINK
can you help me please :
Use FindControl If the Button is within another control.
i want to hide this button
<HeaderTemplate><asp:Label Font-Size="15px" runat="server" style="color: #3366FF"><u>Action</u></asp:Label><asp:LinkButton runat="server" ID="bt1" ValidationGroup="breath" CausesValidation="true" CommandName="addnew" ToolTip="addnew" Text="<span class='table-icons' style='font-size:18pt;'><i class='far fa-save'></i></span>"></asp:LinkButton> </HeaderTemplate>
when i click to this link button
<asp:LinkButton runat="server" CommandName="edit" ToolTip="edit" Text="<span class='table-icons'><i class='fas fa-edit'></i></span>" style="width:25px;margin-right:2px;vertical-align:central;"></asp:LinkButton>
and this is my function "onrowediting" in other form
protected void GridView_breath_RowEditing(object sender, GridViewEditEventArgs e) { GridView_breath.EditIndex = e.NewEditIndex; PARAM_BREADTH_OF_RESPONSIBILITY_DAO breath = new PARAM_BREADTH_OF_RESPONSIBILITY_DAO(this._sSqlConnectionString); display_breath(); breath.edit(GridView_breath); display_breath_form(); }
Member
5 Points
23 Posts
Re: OnRowEditing hide "add" linkbutton
Sep 29, 2018 03:14 PM|ahmedshpt|LINK
can you help me please :
Use FindControl If the Button is within another control.
i want to hide this button
when i click to this link button
and this is my function "onrowediting" in other form