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 = "修改";
}
}
转载于:https://blog.51cto.com/zcsull/147369