Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This should be simple, but I don't see it
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01307914
Message ID:
01308142
Vues:
8
>>If I uncomment btnDelete part I get JavaScript confirm dialog, but regardless on the answer in doesn't delete.
>>
>>Without the dialog it deletes great.
>>
>>Do you see what's wrong here?
>
>What does your imagebutton tag look like in the ASPX page? Is the OnClick attribute set to anything?

This was my original ASPX:
<asp:GridView ID="grdDeleteUsers" runat="server" AutoGenerateColumns="False" 
                                         CellPadding="4"
                                        DataKeyNames="UserName" AllowSorting="True"
                                        ForeColor="#333333" GridLines="None" ToolTip="Select user to Delete" 
                                        OnRowDataBound="grdDeleteUsers_RowDataBound" 
                                        Width="379px"                                         
                                        DataSourceID="odsDeleteGrid" AllowPaging="True" PageSize="5">
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                        <EditRowStyle BackColor="#999999" />
                                        <SelectedRowStyle Backcolor="LightCyan" ForeColor="DarkBlue" Font-Bold="True"/>  
                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                        <Columns>
                                            <asp:CommandField ButtonType="Image" DeleteImageUrl="~/images/id_card_delete.gif"
                                                ShowDeleteButton="True" />
I'm re-reading this article now http://www.aspdotnetcodes.com/GridView_Insert_Edit_Update_Delete.aspx
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform