Note that there are some explanatory texts on larger screens.

plurals
  1. POsqldatasource and a Grid delete command error
    primarykey
    data
    text
    <p>I am using sqldatasource to binding to the grid. SqlDatasource is like this:</p> <pre><code>&lt;asp:SqlDataSource ID="DS_ValidUsers" runat="server" ConnectionString="&lt;%$ ConnectionStrings:conString %&gt;" ProviderName="&lt;%$ ConnectionStrings:conString.ProviderName %&gt;" SelectCommand="SELECT ValidUsers.ID, ValidUsers.DomainID, ValidUsers.isAdmin, ValidUsers.isSubmitToTimberline, ValidUsers.isHistoryDetails, ValidUsers.isSearch, ValidUsers.isAttachments, ValidUsers.isUpload, ValidUsers.isDelete, a.Name AS FullName, a.DepartmentCode FROM ValidUsers INNER JOIN db_common.dbo.DomainUsers_Active AS a ON a.DomainID = ValidUsers.DomainID WHERE (ISNULL(a.DomainID, '') NOT IN ('', 'XX0000'))" UpdateCommand="UPDATE ValidUsers SET isAdmin = ?, isSubmitToTimberline = ?, isHistoryDetails = ?,isSearch = ?, isAttachments = ?, isUpload = ?, isDelete = ? WHERE (ID = ?)" DeleteCommand="DELETE FROM ValidUsers WHERE (ID = ?)"&gt; &lt;DeleteParameters&gt; &lt;asp:Parameter Name="ID" /&gt; &lt;/DeleteParameters&gt; &lt;UpdateParameters&gt; &lt;asp:Parameter DefaultValue="false" Name="isAdmin" Type="Boolean" /&gt; &lt;asp:Parameter DefaultValue="false" Name="isSubmitToTimberline" Type="Boolean" /&gt; &lt;asp:Parameter DefaultValue="false" Name="isHistoryDetails" Type="Boolean" /&gt; &lt;asp:Parameter DefaultValue="false" Name="isSearch" Type="Boolean" /&gt; &lt;asp:Parameter DefaultValue="false" Name="isAttachments" Type="Boolean" /&gt; &lt;asp:Parameter DefaultValue="false" Name="isUpload" Type="Boolean" /&gt; &lt;asp:Parameter DefaultValue="false" Name="isDelete" Type="Boolean" /&gt; &lt;asp:Parameter DefaultValue="0" Name="original_ID" Type="Int32" /&gt; &lt;/UpdateParameters&gt; &lt;/asp:SqlDataSource&gt;When I click delete, I am getting following error. I don’t have a clue where this </code></pre> <blockquote> <p>parameter 1 and 2 are coming from? Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Command parameter[1] '' is invalid. Command parameter[2] '' is invalid.</p> </blockquote> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload