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

  • SEARCH
  • Home
  • 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 5970315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:21:27+00:00 2026-05-22T20:21:27+00:00

I want my anonymous user to be able to navigate throughout the website, but

  • 0

I want my anonymous user to be able to navigate throughout the website, but if he presses any button inside the site, he should be redirected to a login page. How do I achieve this?

Are there functions that I should use in the FormAuthentication class?

  • 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-05-22T20:21:27+00:00Added an answer on May 22, 2026 at 8:21 pm

    You can set authentication in files by some setting in in web.config like.

    this will allow you to navigate all the pages.
    Now for any event in page like button click or something else you can write a function in which you can check authentication and authorization of user by Membership provider
    like

    using System.Security.Authentication
    
    Public void IsValidUser()
    {
       if(User.Identity.Name!=string.empty)
         Response.Redirect("~login.aspx");
       else
       {
          if(!User.Identity.IsAuthenticated)
            Response.Redirect("~login.aspx");
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want anonymous user can view projects' status and logs but can not start/stop/force
I want to develop a anonymous chat website like http://omgele.com . I know that
I want do this: sender_email = @request.user.paypal_email if @request.user.paypal_email == paypal@anonymous.com So basically I
When a user is redirected to the login screen after clicking the checkout button
In my web application I want the anonymous user to browse only the login
I'm currently building a site where I want anonymous users to see a page
I want to use an anonymous type as source to a GridView. But it
I want to do something that feels like it should be really simple, but
I want to take an anonymous object as argument to a method, and then
I want to return an anonymous data retreived from a query in Linq. I

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.