Change the default value of the logon page in the loginstatus Control

Source: Internet
Author: User
In the control attributes, there are two attributes: logoutaction and logoutpageurl. You can set that only the current page is refreshed, redirected to a page, or redirected to the logon page when logging out. When testing this control, I am confused about how to set the loginpageurl (login page) and run it. ProgramWhen you press the login link displayed by this control, the login. aspx is always transferred to the root folder, and the actual logon file is in/member/login. aspx. After checking the information, the original logon URL is set in Web. config. If you use form to verify logon, the default web. config is written as follows:

<System. Web>
<Authentication mode = "forms"/> </system. Web> you need to modify it as follows: <system. Web>
<Authentication mode = "forms">
<Forms loginurl = "~ /Member/login. aspx "> </Forms>
</Authentication> </system. Web>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.