asp.net 的代码dim声明变量那里有错误,是为什么?要怎么改?在线等。谢谢
stringstrcon=ConfigurationManager.ConnectionStrings["connstr1"].ConnectionString;SqlC...
string strcon = ConfigurationManager.ConnectionStrings["connstr1"].ConnectionString; SqlConnection conn = new SqlConnection(strcon); SqlCommand cmd = new SqlCommand(); cmd.Connection = conn; conn.Open(); Label1.Text = "打开成功"; dim myusername, mypassword, success, username, password; myusername = Request.QueryString["username"]; mypassword = Request.QueryString["password"]; username="zidanzidan"; password="zidanzidan"; if ((username = myusername) && (password = mypassword)) success=1; else success=0; Response.Write( "success="&success); conn.Close(); conn = null;
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询