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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:46:11+00:00 2026-05-11T06:46:11+00:00

I have a working login form in an asp.net application. Standard stuff with a

  • 0

I have a working login form in an asp.net application. Standard stuff with a username and password text box and a button to process the login. Works fine.

I have a new requirement to allow the user to input the username and password from a separate plain html page that is not a part of my asp.net application. I plan on achieving this using standard html – form, input, submit button etc. The form action will be the URL of my asp.net login page and its method will be POST.

What I want to do in the C# code behind page of the asp.net login form, presumably in the Page_Load event, is to check if the request for the page contains a username and password value being passed in. If it does then I need to read those values and process the login as if someone had clicked the login button on the asp.net page. If not then I will display the login form as usual.

How do I check for the existence of, and read, the username and password values in the request for my page.

  • 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. 2026-05-11T06:46:12+00:00Added an answer on May 11, 2026 at 6:46 am

    Read the Request.Form NameValueCollection and process your logic accordingly:

    NameValueCollection nvc = Request.Form; string userName, password; if (!string.IsNullOrEmpty(nvc['txtUserName'])) {   userName = nvc['txtUserName']; }  if (!string.IsNullOrEmpty(nvc['txtPassword'])) {   password = nvc['txtPassword']; }  //Process login CheckLogin(userName, password); 

    … where ‘txtUserName’ and ‘txtPassword’ are the Names of the controls on the posting page.

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

Sidebar

Related Questions

I am working on ASP.net MVC 3.0 Razor View Engine Application. I have a
i have a form with 2 fields username: password: and a submit button. the
I have an ASP.NET c# web application published to a server of ours. It
I have a nested form in an asp.net page. This nested form is a
I am working with the sample ASP.NET MVC 3 application. I am working on
I have a pretty big web application that I created last year using ASP.NET
Basically I have an asp.net website with login and search pages. Currently, I have
I have a website with in ASP.NET working fine. However, it becomes really annoy
Here is my scenario. I have a working login form that functions correctly. I
I have the WordPress Login form working in the front-end of my website, to

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.