Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange error
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Problèmes
Titre:
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01338605
Message ID:
01338607
Vues:
11
My Grid is defined like this
 <asp:GridView runat="server" ID="ProfilesGrid" DataSourceID="ProfilesDataSource"
                            DataKeyNames="PersonID,LetterCode" AllowPaging="True" AllowSorting="True" 
                            OnRowCreated="ProfilesGrid_RowCreated" 
                            OnRowDataBound="ProfilesGrid_RowDataBound"
                            HeaderStyle-CssClass="header_row" RowStyle-CssClass="data_row" SelectedRowStyle-CssClass="selected_row"
                            AutoGenerateColumns="False" OnSelectedIndexChanged="ProfilesGrid_Selected" OnSorting="ProfilesGrid_Sorting"
                            OnSorted="ProfilesGrid_Sorted" PageSize="20" OnRowDeleted="ProfilesGrid_RowDeleted"
                            OnDataBound="ProfilesGrid_DataBound" OnPageIndexChanging="ProfilesGrid_PageIndexChanging">
Does it mean I have to supply LetterCode parameter in my SP?

Yes, looks like it automatically tries to send a second parameter
exec PeopleDelete @PersonID=873,@LetterCode=N'V' if DataKeyNames used. I guess I need to add a parameter.

BTW, I think I tested the delete functionality and it worked OK. I did install SP1 recently.

Adding extra parameter to SP fixed the problem.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform