跪求一会ASP.NET(C#)的人,帮我做个注册页面
来源:百度知道 编辑:UC知道 时间:2024/06/05 15:44:48
能够对用户的输入进行合理性验证,如果有错误,给出相应的提示
根据用户的输入,在数据库表中增加一条用户记录
我没这个软件 能做好给我么 谢谢了各位...
在webcoing里面这么写
<connectionStrings >
<add name="connstr" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=baiduWeb;Integrated Security=True;Pooling=False"></add>
</connectionStrings>
这个你在部署的时候,Initial Catalog=baiduWeb得改掉,改成你的数据库名字
在cs文件中这么写:
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Data.Odbc;
using System.Data.Common;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
RadioButton1.Checked = true;
}
protected void RadioB