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 289293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:53:38+00:00 2026-05-12T05:53:38+00:00

This is an offshoot of this question . How do I use a Login

  • 0

This is an offshoot of this question.

  • How do I use a Login control if I don’t have a MembershipProvider to point it at?
  • Am I understanding the use model correctly?
  • Is it even reasonable to talk about using a Login control without a MembershipProvider?
  • Dose the MembershipProvider do more than just username/password checking?
  • Would it be more reasonable to create my own MembershipProvider with the same authentication logic?

In my case, I don’t need a MembershipProvider (I think) as my authentication situation is trivial (one user, one password).

I’m interested partly to “future proof” my page and partly because I’m new and wondering about how stuff works. (I tend to learn about things by running full speed into every corner case I can find 🙂

  • 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-12T05:53:39+00:00Added an answer on May 12, 2026 at 5:53 am

    You can just drop the asp:Login control in your page, then in the code behind, catch the Login Control’s Authenticate event.

    In the Authenticate event, check the username/password that the user has entered. The username/password are properties in the login control. (LoginCtrl.UserName, LoginCtrl.Password)

    If the username/password is correct, just set the event args Authenticated property to True.

    No membership provider is required.

    ex. In the aspx page..

    <asp:Login ID="LoginCtrl" runat="server" DestinationPageUrl="YouAreIn.aspx"></asp:Login>
    

    In Code Behind

    Private Sub Log_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles LoginCtrl.Authenticate
        If LoginCtrl.UserName = "Hello" AndAlso LoginCtrl.Password = "Hello" Then
            e.Authenticated = True
        End If
    

    c#

    void MyLogin_Authenticate(object sender, AuthenticateEventArgs e)
    {
        if(UserName == "Hello" && Password == "Hello")
            e.Authenticated = true;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is an offshoot to my other question . Is there something special I
This may be an unusual question, but are there any resources people have come
This is an offshoot of a previous question which started to snowball. If I
This is an offshoot question that's related to another I asked here . I'm
This is an offshoot from a previous question, is this bad practice (using the
This might seem like a stupid question I admit. But I'm in a small
This is a difficult and open-ended question I know, but I thought I'd throw
This most be the second most simple rollover effect, still I don't find any
This is a self-explanatory question: Why does this thing bubble into my try catch's
This is an interview question, and should concern about efficiency. How to calculate occurrences

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.