intid=(int ) gvadmins.datakeys [ e.rowindex ].value; string SQL=' deletefromadminswhereadminsid=' id; sqlhelper.execute SQL get (SQL )==0) {Response.Write
int id=(int ) gvadmins.datakeys [ e.rowindex ].value;
string SQL=' deletefromadminswhereadminsid=' id;
sqlhelper.execute SQL get (SQL )==0) ) )。
{
Response.Write ('!' );
}
else
{
Response.Write (' );
}
Bind (;
sqlhelper.execute SQL get (SQL )==0)如果执行的SQL删除语句为什么等于0,则要求提供详细说明,说明操作成功,而不是大于0。
SqlHelper.ExecuteSqlGet方法的代码:
公共静态字符串(SQL string ) )。
{
using (sqlconnection connection=new sqlconnection (connectionstring ) )
{
sqlcommand cmd=new sqlcommand (SQL string,connection );
托里
{