- 博客(3)
- 收藏
- 关注
原创 判断用户注册的用户名是否为数据库中已有的用户名
关键:使用DataSet 实现 protected void Button1_Click(object sender, EventArgs e) { string UserName = TextBox1.Text; SqlConnection conn = new SqlConnection(); conn.ConnectionString = "
2008-06-03 17:41:00
2561
原创 使用session在页面间传递参数
传递参数页面:1.aspx 接收参数页面:2.aspx 1.aspx后台代码: protected void Button1_Click(object sender,EventArgs e) { Session["name"]=TB.Text; Response.Redirect("2.aspx?name="+Session["name"].ToString()); } 2.aspx后台代
2008-06-02 23:43:00
2164
原创 asp.net连接SQL Server数据库的代码
首先添加命名空间using System.Data.sqlclient; 具体代码为: SqlConnection conn=new SqlConnection();conn.ConnectionString="Server=.;database=数据库名;uid=sa;pwd= ;integrated Security=SSPI;persist Security info=false;";con
2008-06-02 23:31:00
761
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人