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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:43:55+00:00 2026-06-10T04:43:55+00:00

I have created an extension using formbuilder. Now I have used it in my

  • 0

I have created an extension using formbuilder. Now I have used it in my view.
My view looks like:

@using (Html.BeginForm("addDataInd", "CustInformations", FormMethod.Post))
{
  <fieldset class="field">
    <legend>Addresses</legend>
      <table>
        <tr>                            
          @Html.EditorFor(model => model.addresses) 
        </tr>
      </table>           
  </fieldset> 
}

where

@Html.EditorFor(model=>model.addresses)

calls my EditorTemplate which looks like:

<td>
@Html.hSearch("txtSearch", "", "lblsrch", "Search Text: ", "Search", "Fetch", "LookUp", new { script = "Select Aid, FullAreaName from fGetAreaTB()" }, null)
</td>

When i run the program the page looks like

enter image description here

i used fire bug to know the error. All I found was that, the code generated for the first
upper image (i.e. for permanent address) it doesn’t create a form, but for other two it creates a form. So when I click the first search button, it doesn’t work but when i click the second and third button it works well.

I just want when i run the program all the button must be in form.

  • 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-06-10T04:43:57+00:00Added an answer on June 10, 2026 at 4:43 am

    You cannot nest HTML forms. For this reason you will have to use multiple forms and put them inside the template. Like this:

    <fieldset class="field">
        <legend>Addresses</legend>
        <table>
            <tr>                            
                @Html.EditorFor(model => model.addresses) 
            </tr>
        </table>           
    </fieldset> 
    

    and inside the editor template:

    @model Address
    <td>
        @using (Html.BeginForm("addDataInd", "CustInformations", FormMethod.Post))
        {
            @Html.hSearch("txtSearch", "", "lblsrch", "Search Text: ", "Search", "Fetch", "LookUp", new { script = "Select Aid, FullAreaName from fGetAreaTB()" }, null)
        }
    </td>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a generic extension method to serialize JSON using the DataContractJsonSerializer. looks
I have created a simple Google chrome extension that overrides CSS classes using the
I have created a Shell Extension using ATL COM Object . But during creation
I have created the app with forge, and have added in the chrome extension,
i have installed SharePoint 2007 and VS2008 extension on my computer.i have created a
I have an app that recognizes an extension of a file created in my
I have created an android application that calls (using kSOAP library) a SOAP based
I need to associate a file extension I have created .rulog with notepad.exe as
I have created an extension for mediawiki that works in all major browsers other
I have created a Generic Extension method for DataRow object. The method takes no

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.