protected void btnLogin_Click(object sender, EventArgs e) { if (IsLogin()) { if (Convert.ToBoolean(hdnIsPage.Value)) { MPELogin.Hide(); Response.Redirect(Request.RawUrl); } else { Response.Redirect(objPageBase.GetAlias("Order.aspx")); } } }
public void ShowLogin(bool IsPage = false) { hdnIsPage.Value = IsPage.ToString(); MPELogin.Show(); }