2

I have a website with two different sets of membership controls for different parts of the site. The first one works fine. There is a loginstatus control which handles the status of whether a user is logged in or not. If not, it says 'Login' and links to 'Login.aspx' - as dictated in my web.config file:

<authentication mode="Forms">
  <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
</authentication>

However, in a completely different part of the website there is a different loginstatus control, but the login URL for this control should be 'clientlogin.aspx'. I just can't seem to get the loginstatus to link to 'clientlogin.asp' when the user is logged out.

Can anyone suggest how to do this?

Thanks!

4

1 に答える 1

0

コントロールでLogoutPageUrlプロパティを試しましたか?LoginStatus

于 2012-08-02T14:00:37.507 に答える