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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:05:01+00:00 2026-05-30T21:05:01+00:00

I have the following fom: form id=login_form class=fancy_form action=@Url.Action(Logon, Account) method=POST> <div class=bl_label> Eneter

  • 0

I have the following fom:

form id="login_form" class="fancy_form" action="@Url.Action("Logon", "Account")" method="POST">
    <div class="bl_label">
        Eneter by login:</div>
    <div style="margin: 0px 30px 0px 30px;">
        <div class="wrap_input" style="display: inline-block;">
            <p class="inp_label">
                Login:</p>
            <i>&nbsp;</i>
            <input type="text" value="" style="width: 131px">
        </div>
        <div class="wrap_input" style="display: inline-block; margin-left: 15px;">
            <p class="inp_label">
                Password:</p>
            <i>&nbsp;</i>
            <input type="password" value="" style="width: 131px">
        </div>
        <div id="error">
        </div>
    </div>
    <div style="margin: 17px 30px 0px 30px; line-height: 20px;">
        <a href="javascript:void(0);" style="margin-right: 20px;">Forgot Password?</a> <a href="javascript:void(0);">
            Register?</a>
        <input type="submit" class="ibtn" value="Готово" style="float: right;">
    </div>
    </form>

This is my script:

 $("#login_form").live("submit", function (event) {
        event.preventDefault();
        var form = $(this);

        $.ajax({
            // Get the action URL
            url: form.attr('action'),
            type: "POST",

            // get all form variables
            data: form.serialize(),

            // upon success, the fragment of HTML from the Controller will be stored in loginResultHtml
            success: function (loginResultHtml) {

                // append the html to your login DIV id using jQuery.html function
                $("#error").html(loginResultHtml);
            }
        });
    });

Controller for test:

public JsonResult LogOn()
        {
            var test = Request.Form;
            return new JsonResult();
        }

The Form property in the Request contain nothing (Count = 0, AllKeys is empty)
Where is problem?

  • 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-30T21:05:02+00:00Added an answer on May 30, 2026 at 9:05 pm

    Your input elements are missing the “name” attribute.

    See http://www.w3schools.com/tags/att_input_name.asp
    Quote:

    Note: Only form elements with a name attribute will have their values passed when submitting a form.

    You should consider using the html helpers which help you create correct HTML code: http://msdn.microsoft.com/en-us/library/dd410596.aspx

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

Sidebar

Related Questions

i have following html structure. <p class=expandableContent ><span class=label>Computer and Laptop Repairs</span></p> <div style=clear:
I have following code in html: <div> <div style=float:left;margin:0.5em> <span class=title>Label1</span><br/> <input type=text name=name1
I have following elements in the page: <div class=cl1 cl2></div> <div class=cl1 cl2></div> <div
I have following code: <div class='parent'> <div class='left-child'></div> <div class=right-child></div> </div> What I want
I have following div in a page (I can not modify). <div id=:0.control>Click me</div>
I have following setup. from django.db import models from django.contrib.auth.models import User class Event(models.Model):
I have following html codes <div align=center style=width:1000px;border:1px solid green;> <div style=border:1px solid red;float:left;
I have following class which reads and writes an array of objects from/to a
I have following method that I would like to make shorter or faster if
I have following method that I select all the ids from table and append

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.