Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Almas Akhtar   on Mar 20 In Asp.net Category.

  
Question Answered By: Camille Garrett   on Mar 20

In my Datagrid I have added the delete  linkbutton from the property builder. So, I can't find the the id or name of this link  button from the HTML. Could you help as to how to find this control in order to attach a message on delete using C#. The code  id pasted below:


<asp:datagrid id=dgCategorie style="Z-INDEX: 112; LEFT: 18px; POSITION: absolute; TOP: 53px" runat="server" Height="130px" Width="739px" HorizontalAlign="Center" Font-Names="Verdana" AllowPaging="True" AllowSorting="True" CellPadding="3" BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="Black" AutoGenerateColumns="False"
<Columns>
<asp:BoundColumn DataField="Cat_Nom" HeaderText="Categorie"></asp:BoundColumn>
<asp:BoundColumn DataField="Coul_Cat" HeaderText="Couleur"></asp:BoundColumn>
<asp:BoundColumn DataField="Tmpl_Cat" HeaderText="Template"></asp:BoundColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" HeaderText="Modify" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
</Columns>
</asp:datagrid>

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Confirm delete on a Link button Or get search suggestion and latest updates.


Tagged: