hospital.aspx.cs
来自「医院的用户管理与缴费与当病人去医院看病的时候要挂号等作用。」· CS 代码 · 共 43 行
CS
43 行
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class ConsumptionSys_hospital : System.Web.UI.Page
{
private string id;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["id"] == null)
{
if (Session["id"]==null)
{
Response.Redirect("~/error.aspx");
}
else
{
id =Session["id"].ToString();
string sql = "select * from adminuser where adminid=" + id;
DataTable user = GenericDataAccess.ExecuteSelectCommand(sql, Page);
Label1.Text = user.Rows[0]["adminname"].ToString();
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("menzhen.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("~/BusinessSys/pay.aspx");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?