我正在尝试通过 griview 更新 mysql 数据库,但是当我单击更新按钮时,这里没有更改是我的 sql 数据源代码,但这不起作用
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GisConnectionString %>"
ProviderName="<%$ ConnectionStrings:GisConnectionString.ProviderName %>" SelectCommand="SELECT vehicleno, cnic, isaccepted, gname, fname, haulagecode FROM gis.registration WHERE (regno = ?) and vehicleno=?"
UpdateCommand="UPDATE gis.registration SET vehicleno =?, cnic =?, isaccepted =?, gname =?, fname = ?, haulagecode = ? where regno=? and vehicleno=?">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="?" PropertyName="Text" />
<asp:ControlParameter ControlID="TextBox2" Name="?" PropertyName="Text" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="vehicleno" DbType="string" />
<asp:Parameter Name="cnic" DbType="string"/>
<asp:Parameter Name="isaccepted" DbType="string" />
<asp:Parameter Name="gname" DbType="string"/>
<asp:Parameter Name="fname" DbType="string"/>
<asp:Parameter Name="haulagecode" DbType="string"/>
<asp:Parameter Name="regno" DbType="string"/>
<asp:Parameter Name="vehicleno" DbType="string"/>
</UpdateParameters>
</asp:SqlDataSource>
任何帮助将不胜感激提前感谢