Question : error while using grid view

<asp:AccessDataSource ID="db1" runat="server" DataFile="~/hello/db11.mdb"
                    SelectCommand="SELECT * FROM [db11]" UpdateCommand="UPDATE [db11] SET [fname] = ?, [lname] = ? WHERE [Id] = ? ">
                     <UpdateParameters>
            <asp:Parameter Name="fname" Type="String" />
            <asp:Parameter Name="lname" Type="String" />
        </UpdateParameters>
</asp:AccessDataSource>

Answer : error while using grid view

the problem is with the [id] parameter. it should be included.

right now there is only fname and lname but the update query is expecting [id] as well
Random Solutions  
 
programming4us programming4us