<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DbConnection %>"
SelectCommand="SELECT [userid],[loginid], [password], [contactname], [phone], [zip], [state], [city], [address], [companyid], [email] FROM [users] where [active]=1"
UpdateCommand="Update [users] set [loginid]=@loginid, [password]=@password, [contactname]=@contactname, [phone]=@phone, [zip]=@zip, [state]=@state, [city]=@city, [address]=@address, [companyid]=@companyid, [email]=@email where [userid]=@userid"
DeleteCommand="UPDATE [dbo].[users] SET [active] = 0 WHERE userid=@userid">
</asp:SqlDataSource>
您好我正在尝试教程,他们有一个基本的开箱即用的gridview命令autogenerateDelete和autogenerateEdit。
我的问题是