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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:15:46+00:00 2026-05-23T14:15:46+00:00

I have a form which has some fields .I want to show some labels

  • 0

I have a form which has some fields .I want to show some labels when the user enter number in a textbox in one of the form fields.
I know that I have to use Ajax but the problem is the Ajax form is in another form. So when I submit Ajax form the outter form is submit and I can not get Ajax request.
Here is my code structure:

@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset style="font-family:'B Nazanin';font-size:14pt">
    <div align="center">        
        <table border="0">
            <tr align="center">
                <td>
                    @Html.LabelFor(model => model.a)

                </td>
                <td>
                    @Html.LabelFor(model => model.a)
                    @Html.EditorFor(model => model.a)
                    @Html.ValidationMessageFor(model => model.a)
                </td>
            </tr>
        </table>
        <div align="right" id="searchJustForm">
         <fieldset style="font-family:'B Nazanin';font-size:14pt">                             
            @using (Ajax.BeginForm("Index", "Terminal", new AjaxOptions() { UpdateTargetId = "divGomrokJust", InsertionMode = InsertionMode.Replace }))
            {
            <div align="center">

thank you for you attention.

  • 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-23T14:15:47+00:00Added an answer on May 23, 2026 at 2:15 pm

    You cannot nest HTML forms. That’s invalid HTML. You will have to modify your markup. You could use pure jQuery by subscribing for .change events of your form elements and trigger an AJAX request using the $.ajax method.

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

Sidebar

Related Questions

I have a table which has some nullable fields and when the user enters
I have an object Project which has a number of fields, one of which
I have a form which has some fields and more fields get added dynamically
I have a form which has only tab control in it. I want to
I have written a simple CRUD form which has one select list. However the
I have a huge ASPX web form which has around 100 fields which need
I have a list which has 5 columns in it. Some of these fields
I have a form which has multiple input fields, and 3 main options. depending
I have a signup form of which most fields are pre-filled using user's Facebook
I have an active form model which has fields I do not wish 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.