You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
614 B
16 lines
614 B
using System;
|
|
using System.Data;
|
|
|
|
public partial class modi : System.Web.UI.Page
|
|
{
|
|
DBClass db1 = new DBClass();
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
string uid = Request.QueryString["uid"]; //获取传递的参数
|
|
string strsql = "select * from register where id=" + uid; //编写查询语句
|
|
DataTable dt = db1.GetRecords(strsql); //获取查询结果
|
|
Label1.Text = dt.Rows[0]["username"].ToString(); //填充用户名
|
|
TextBox1.Text = dt.Rows[0]["password"].ToString(); //填充密码
|