I have two pages: Default.aspx and Target.aspx. On Default.aspx are two buttons:
Button1 redirects to ("~/Target.aspx?mode="drop"");
Button2 redirects to ("~/Target.aspx?mode="textbox"");
具体目标。 原文为:
string display = Request.QueryString["mode"];
switch (display)
{
case "textbox":
TextBox1.Visible = true;
DropDownList1.Visible = false;
break;
case "drop":
TextBox1.Visible = false;
DropDownList1.Visible = true;
break;
}
如你所知,就Button1而言,具体目标.aspx应隐藏文本Box1,显示DroopDownList1。 然而,这并不奏效。 你们能否帮助我? 增 编