用的是vs2008,Oracle数据库。数据库名是works,密码是password,表名 author ,有两个字段 aname  和  apassword   (分别是作者名和密码)
using System;
using System.Collections;
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.OracleClient;public partial class 注册登录 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {    }    protected void Button1_Click(object sender, EventArgs e)
    {
        if (DropDownList1.Text=="作者")
            SqlDataSource1.Insert();        
        if (DropDownList1.Text == "专家")
            SqlDataSource2.Insert();
        if (DropDownList1.Text == "管理员")
            SqlDataSource3.Insert();
    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        for (int i = 0; i < 1000; i++)
        {
            if (DropDownList1.Text == "作者")
            {
               
            }
        }
    }
}