谁能为我提供一个从新建一个的web应用程序(C#)以及到其运行的详细步骤吗,包含配置,我做了一个登录界面,有一个用户表,如何链接数据呢???

解决方案 »

  1.   

    OleDbConnection myConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ Server.MapPath("")+"\\db\\news.mdb");   
    OleDbCommand mycomm = new OleDbCommand("SELECT * FROM manager WHERE username='"+user.Text.Trim()+"'", myConnection);    
    mycomm.Connection.Open();
    OleDbDataReader myDataReader=mycomm.ExecuteReader();
    if (!myDataReader.Read())
    Label1.Text="用户不存在!";
    else
    if((string)myDataReader["pwd"]!=password.Text.Trim())
             Label1.Text="密码错误!";
    else
    {
    Session["name"] = (string)myDataReader["username"];
    Response.Redirect("manage.aspx");
    }
    这是我的第一个.net程序,写了好长好长时间了,你看看有没有帮助?
      

  2.   

    这样的例子遍地都是,随便找找就有一箩筐~
    看看这个入门教程
    http://www.wrclub.net/study/listarticle.aspx?id=2495
      

  3.   

    http://chs.gotdotnet.com/quickstart/aspplus/