如何不使用任何按钮立即重定向到FilterPending.aspx

时间:2018-07-23 12:37:47

标签: c# visual-studio

public partial class DummyLoginPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DropDownList1.Enabled = true;
        }
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("AdminMainMenu.aspx");
    }

    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
       if(DropDownList1.SelectedValue == "Pending Order Status")
        {
            Response.Redirect("FilterPending.aspx");
        }
    }
}

0 个答案:

没有答案