日期:2014-05-17 浏览次数:20458 次
<asp:Button CssClass="logout" runat="server" Text="Logout" OnClick="LogoutBtn_Click" />
public void LogoutBtn_Click(object sender, EventArgs e)
{
userLogin.AccountLogout(loginOutput, LogoutDone);
}
void LogoutDone(object sender, StatusEventArgs e)
{
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript0", "<script>logoutCallback();</script>");
}
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript0", "<script>logoutCallback();</script>");
private ManualResetEvent mh;
public void LogoutBtn_Click(object sender, EventArgs e)
{
mh = new ManualResetEvent(false);
userLogin.AccountLogout(loginOutput, LogoutDone);