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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:02:37+00:00 2026-05-14T01:02:37+00:00

I have a child page LoginContent.aspx which contains a login form. If the user

  • 0

I have a child page LoginContent.aspx which contains a login form. If the user logs in he should be redirected to my Welcome.aspx page. But if I press the login button the page just reloads itself, nothing happens.
The codebehind on this page is empty. Both LoginContent.aspx and Welcome.aspx are child forms of the same master page.

<form method="post" action="~/Welcome.aspx">
    Username: <input type="text" name="username" size="15" /><br />
    Password: <input type="password" name="passwort" size="15" /><br />
<input type="submit" value="Login"/></p>
</form>

I know I could use the asp.net login control but I want more control over things.

  • 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-14T01:02:37+00:00Added an answer on May 14, 2026 at 1:02 am

    You can’t have nested form inside aspx page.

    UPDATED:

    Since ASP.NET webform doesn’t allow us to have multiple form in one aspx page, thus in order to make it works, do the following:

    1. Remove the form tag
    2. add runat server to
    3. the input perform redirect in the server side

    .

    Username: <input type="text" name="username" size="15" runat=server /><br/>
    Password: <input type="password" name="passwort" size="15" runat=server /><br/>
    <input type="submit" value="Login" runat=server onclick="submit_onclick" /></p>
    

    And in the code behind:

    protected void submit_onclick(object sender, Event e)
    {
       // do some auth stuff here
       Response.Redirect("~/welcome.aspx");
    }
    

    Hope this will answer your question.. 🙂

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

Sidebar

Related Questions

I have some child processes which should write some logs into a common file.
I have Parent page and a Child page('empW.cfm'),which is nothing but a popup window
I have a parent page and child page, both aspx. All is working, but
I have an asp.net page which launches a child page in another browser window
I'm trying to create model Page, page should be able to have child pages
I have a user control which opens as a modal popup on a child
I am trapped in one problem. I have a page which contains some taxboxes.
In my child page i have an imageButton, which is surrounded by the UpdatePanel.
I have a master page containing child page with user controls on it. I'm
The problem In my application I have a parent page which contains an iframe

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.