本帖最后由 yangjun1003 于 2011-08-15 16:39:20 编辑

解决方案 »

  1.   

    Select User,Pwd From List
    where PowerID = ‘"+TextBox1"'取出查询得到的数据
    TextBox2.Text = dt.rows[0]["user"].ToString()
    ...
      

  2.   

    C#      WEB的
      

  3.   

    贴子冷的原因:1 技术过于偏或精
    2 问题本身不够明确
    3 CSDN 宕掉了,除了楼主其他人该页无法显示
    你的问题,你觉得是哪般的呢?SqlConnection conn = new SqlConnection(someConnectionString);
    SqlCommand cmd = new SqlCommand();
    cmd.Connection = conn;
    cmd.CommandText = "Select User,Pwd From List where PowerID = ‘"+TextBox1.Text +'";string result = string.Empty;
    conn.Open();
    using(DataReader reader = cmd.ExecuteReader())
    {
        if(reader.Read())
        {
            result = Convert.ToString(reader["User"]);
        }
    }
    conn.Close();TextBox2.Text = result;
    TextBox3.Text = result;
    Label1.Text = result;
      

  4.   

    你就用Ajax获取吧,Lz是要input的onchange事件。
    获取值。。