注销控件是LoginStatus,它有两个状态,是:登陆、注销。

注销后重新指向的地址属性是:LogoutPageUrl,但无登陆LoginUrl属性,如需制定需在web.config中的<authentication mode=”forms” />部分指定,用以下部分替代。

<authentication mode=”forms”>

    <forms loginUrl=”Login.aspx” />

</authentication>

尽量使用Login.aspx作为登陆页,以免命名混乱。