HyperLink控件:NavigateUrl屬性指定跳轉頁面。
頁面綁定函數:
private void BindPage()
{
string action = Request.QueryString["action"].ToString();
if (action == "add")
{
Button1.Text = "添加";
Label1.Text = "添加";
}
else
{
Button1.Text = "修改";
Label1.Text = "修改";
}
}
{
string action = Request.QueryString["action"].ToString();
if (action == "add")
{
Button1.Text = "添加";
Label1.Text = "添加";
}
else
{
Button1.Text = "修改";
Label1.Text = "修改";
}
}