asp.net获取flash文本框传的值
stringuserid="";intzongfen=int.Parse(Request.QueryString["defen"].ToString());stringt...
string userid = "";
int zongfen =int .Parse( Request.QueryString["defen"].ToString());
string tumu = "";
string sql = "insert into fenshu (userid,zongfen,time) values(userid,zongfen,time)";
SqlConnection cn = new SqlConnection("connectionString");
SqlCommand cmd = new SqlCommand(sql, cn);
cn.Open();
cmd.ExecuteNonQuery();
cn.Close();
这是ASP,net代码
他报为将对象应用到对象的实力 展开
int zongfen =int .Parse( Request.QueryString["defen"].ToString());
string tumu = "";
string sql = "insert into fenshu (userid,zongfen,time) values(userid,zongfen,time)";
SqlConnection cn = new SqlConnection("connectionString");
SqlCommand cmd = new SqlCommand(sql, cn);
cn.Open();
cmd.ExecuteNonQuery();
cn.Close();
这是ASP,net代码
他报为将对象应用到对象的实力 展开
1个回答
展开全部
if(Request.QueryString["defen"]==null)
{
}
else
{
string userid = "";
int zongfen =int .Parse( Request.QueryString ["defen"].ToString());
string tumu = "";
string sql = "insert into fenshu (userid,zongfen,time) values(userid,zongfen,time)";
SqlConnection cn = new SqlConnection("connectionString");
SqlCommand cmd = new SqlCommand(sql, cn);
cn.Open();
cmd.ExecuteNonQuery();
cn.Close();
}
{
}
else
{
string userid = "";
int zongfen =int .Parse( Request.QueryString ["defen"].ToString());
string tumu = "";
string sql = "insert into fenshu (userid,zongfen,time) values(userid,zongfen,time)";
SqlConnection cn = new SqlConnection("connectionString");
SqlCommand cmd = new SqlCommand(sql, cn);
cn.Open();
cmd.ExecuteNonQuery();
cn.Close();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询