Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
arous ahmed
2.2k
14
941
hide "add" linkbutton when i click to "edit" linkbutton"
Sep 30 2018 9:33 AM
hi ,
this is my site form
and when i click to edit link button the add link button visible
this is my form code
<asp:TemplateField HeaderStyle-Width=
"50px"
>
<ItemTemplate>
<asp:LinkButton
ID="link_edit"
runat=
"server"
CommandName=
"edit"
ToolTip=
"edit"
Text=
"<span class='table-icons'><i class='fas fa-edit'></i></span>"
style=
"width:20px"
></asp:LinkButton>
<asp:LinkButton
ID="link_delete"
runat=
"server"
CommandName=
"delete"
ToolTip=
"delete"
Text=
"<span class='table-icons'><i class='fas fa-times'></i></span>"
style=
"width:20px;"
OnClientClick=
"return confirm('Are you sure you want to delete this record?');"
></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton
ID="link_update"
runat=
"server"
CommandName=
"Update"
ToolTip=
"Update"
Text=
"<span class='table-icons'><i class='far fa-save'></i></span>"
style=
"width:20px;"
></asp:LinkButton>
<asp:LinkButton ID="link_cancel" runat=
"server"
CommandName=
"Cancel"
ToolTip=
"cancel"
Text=
"<span class='table-icons'><i class='fas fa-times'></i></span>"
style=
"width:20px;"
></asp:LinkButton>
</EditItemTemplate>
<HeaderTemplate>
<label style=
"color: #3366FF"
>Action</label>
<asp:LinkButton ID="link_add" runat=
"server"
ValidationGroup=
"company_country"
CausesValidation=
"true"
CommandName=
"addnew"
ToolTip=
"addnew"
Text=
"<span class='table-icons' style='font-size:15pt;'><i class='far fa-save'></i></span>"
></asp:LinkButton>
</HeaderTemplate>
</asp:TemplateField>
and this is my function that i would define invisible = false
protected
void
GridView_cause_RowEditing(
object
sender, GridViewEditEventArgs e)
{
GridView_cause.EditIndex = e.NewEditIndex;
PARAM_CAUSE_DEPARTURE_DAO cause =
new
PARAM_CAUSE_DEPARTURE_DAO(
this
._sSqlConnectionString);
display_cause();
cause.edit(GridView_cause);
display_cause_form();
}
help me please
Reply
Answers (
2
)
Which is best and free mvc rich text editor for product desc
how to check isnullorempty in javascript