Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8986367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:31:58+00:00 2026-06-15T21:31:58+00:00

The site I’m creating has one section for non authenticated users and another for

  • 0

The site I’m creating has one section for non authenticated users and another for authenticated users.

(almost) every page in the site has a LoginStatus control which is located in the header and shown as 2 different buttons depending on status.

The problem I have, is that with pages in the non-authenticated folders of the site despite setting the LogoutPageUrl value in that control to the value “~login.aspx”, the site merely refreshes the page but the control DOES show that the user is logged out by displaying the correct image in the control..and when clicking on that control again you ARE directed to the login page.

here’s that control:

    <asp:LoginStatus CssClass="loginControlBtn" ID="LoginStatus2" 
    runat="server" LogoutPageUrl="~/login.aspx" 
    LoginImageUrl="~/images/LoginBtn.jpg"
    LogoutImageUrl="~/images/LogoutBtn.jpg" />

Also, once clicking on the login option on the LoginStatus control and logging in again you aren’t directed to the page specified in the Login control, but end up back at the page you were at when you selected the Login option on the LoginStaus control.

here’s the code for that Login control:

    <asp:Login ID="helpDeskLoginCtrl" runat="server" 
            DestinationPageUrl="~/admin/HelpDeskOptions.aspx" 
            style="text-align: justify" VisibleWhenLoggedIn="False" Width="421px">
        </asp:Login>

The site uses Forms authentication so that only authenticated users can view pages in the “~/admin” folder..and at least THAT part is working properly as when selecting to logout whilst at a page in that folder you’re directed to the “~/login.aspx” page.

But then when you login again rather than going to

DestinationPageUrl="~/admin/HelpDeskOptions.aspx

as specified in the Login control you’re directed back to the page you came from.

I’m really stumped.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:32:00+00:00Added an answer on June 15, 2026 at 9:32 pm

    well one of my college teachers helped me with the actual answer to this problem, and while I can’t take credit for it I’m positing it here to help others who may encounter the same problem.

    The property that caused my issue is the ‘LogoutAction’ control.

    In the version of VS i’m using (2010) the default value is “Refresh” while it need to be changed to “Redirect” in order to always go to the page specified in the “LogoutPageURL” control and to not return from whence you came after logging back in.

    hope this helps someone,
    Fenix

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My site has a login box in the Layout page on which every page
My site (ASP.NET + C#) has FAQ data pull from another site's web service
My site has the following url format: www.mysite.com/Display.aspx?ID=128 However most users see the url
Site for writers and readers, both groups will be non-technical users (writers will be
My site has a few pages that point to the same child page. I'm
My site has language change control so when a language is clicked I reload
site.com/link?p=2 give $_GET['p']==2 even though i've already made site.com/link rewrite to site.com/index.php?page=link So, i'm
The site I'm currently working on has a series of videos on a carousel
My site, which is built on Python/Postgresql with django, has an area where you
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.