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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:39:16+00:00 2026-05-28T13:39:16+00:00

I basically need to login into another domain that is using asp.net membership. If

  • 0

I basically need to login into another domain that is using asp.net membership.

If we have an ASP.net web application using ASP.Net Membership on one hand, and
an HTML page from another domain on the other hand.

Is it possible to login into the ASP.NET website via remote HTML page.

I’ve done this with Coldfusion before but ASP.NET membership is using a server control.

Cheers!

  • 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-28T13:39:17+00:00Added an answer on May 28, 2026 at 1:39 pm

    Underneath the Login Server Control, ASP.NET uses a MembershipProvider implementation and Forms Authentication to a user in with ASP.NET Membership. You can replicate these steps without using the Login Server Control, by manually validating the credentials and then attaching the FormsAuthentication cookie to the Response.

    Here are some resources that should help you get started:

    • Understanding the Forms Authentication Ticket and Cookie – MSDN
    • Explained: Forms Authentication in ASP.NET 2.0 – MSDN
    • Examining ASP.NET’s Membership, Roles, and Profile – 4guysfromrolla

    You would also probably benefit from Reflecting on the source of the Login control, so you can gain an understanding the exact sequence of events that happens when a user logs in using the server control. This should make it easier for you to understand how to replicate that functionality for your particular use case.

    As a side-note, I would recommend using a custom IHttpHandler implementation as an injection point for processing the login request, but there are many ways you can accomplish this task.

    Update, I’m feeling generous, so

    Below is an example handler that you could use to log a user in with ASP.NET Membership and FormsAuthentication (just like the server control).

    This code assumes:

    1. There is a mapping configured with either Routing or the web.config that will call this handler.
    2. The requesting page has a form that points to the url/route that is mapped in the web.config or with routing, and that the form on that page contains a username input field with the name username and a password input field with the name password.

          public class LoginHandler : IHttpHandler
          {
              void IHttpHandler.ProcessRequest(HttpContext context)
              {
                  string username = context.Request["username"];
                  string password = context.Request["password"];
                  if (!string.IsNullOrWhiteSpace(username) && !string.IsNullOrWhiteSpace(password) && Membership.Provider.ValidateUser(username, password))
                  {
                      FormsAuthentication.SetAuthCookie(username, true);
                      RenderUserLoggedInResponse(context.Response,username);
                  }
                  else FormsAuthentication.RedirectToLoginPage("loginfailure=1");
              }
              private static void RenderUserLoggedInResponse(HttpResponse response, string username)
              {
                  response.Write(string.Format("You have logged in successfully, {0}!", username));
                  response.End();
              }
      
              bool IHttpHandler.IsReusable { get { return true; } }
          }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the scenario: ASP.NET MVC2 Web Application Entity Framework 4 (Pure POCO's, Custom Data
I have a PHP web application where I've made a little module system, that
basically need to change the value that - admin_url() returns any idea?
I basically need to know how to import SQL code into Access. I've tried
Basically I need a hosted solution, where one can create an account for a
Basically, I have a file like this: Url/Host: www.example.com Login: user Password: password Data_I_Dont_Need:
This may sound bizarre - I need a customer group that when they login
I need the users to register to my website with login and password. basically
I have recently inherited some Java code and need to integrate it into a
I am developing a WinForm application using VB.NET (I am fluent in C# as

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.