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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:45:09+00:00 2026-05-24T18:45:09+00:00

I have the following view <form action=/Questionnaire/Submit method=post> <%:UserName : %> <%=ViewData[UserName]%> <%=Html.TextBox(test,ViewData[tt])%> <p

  • 0

I have the following view

<form action="/Questionnaire/Submit" method="post">
  <%:"UserName : "%>

  <%=ViewData["UserName"]%>
 <%=Html.TextBox("test",ViewData["tt"])%>
<p />
 <%:"Phone Number :"%>

 <%=ViewData["PhoneNumber"]%>
 <p />
 <%
  foreach (var q in Model)
   {
       Html.RenderPartial("Question", q);

   }
 %>
  <input type="submit" name="submit" value="submit" />
  </form>

That render the following partial view

<%    using (Html.BeginForm("Submit", "Questionnaire", FormMethod.Post))
      {%>

<%:"Question Number "%>
<%=Model.QuestionNumber%>
<%:"  "%>
<%=Model.Body%>
<%:"  "%>
<%
      foreach (var option in Model.Options)
      {%>
      <p/>

   <%=Html.RadioButton(option.QuestionId.ToString(), (option.IsSelected) )%> &nbsp;<%=     option.OptionBody%>
      <%
      }
  }
%>

The problem is , The form dosn’t submit , and when I remove the “foreach” statment from the master view, It works

My Objective, is to have the updated model ( from the master view and partial view ) to save it later on in DB

  • 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-24T18:45:11+00:00Added an answer on May 24, 2026 at 6:45 pm

    Your master view contains a form and then your partial view also creates a form each time it renders, so you will be left with a page containing multiple forms but only one ‘Submit’ button.

    I’m not 100% certain what you need to do, but I’d try and remove the ‘BeginForm‘ call from the partial and see if that fixes the problem.

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

Sidebar

Related Questions

Hi, I have the following in my view : <form id=list_ad method=get class=adListFilter action=<%=Url.Action(List,
I have following view <asp:Content ID=Content2 ContentPlaceHolderID=MainContent runat=server> <h2>Tables <%=ViewData[RetriverName] %></h2> <%using (Html.BeginForm(ResfreshSelectedTables, Home))
I have the following ActionLink in my view <%= Html.ActionLink(LinkText, Action, Controller); %> and
I have the following form in my /app/views/password_resets/new.html.erb view <% form_tag password_resets_path do %>
I Have following code: Controller: public ActionResult Step1() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public
I have the following in my view: <%using (Html.BeginForm()) {%> <% foreach (var item
I have the following form: <% form_for(:tag, :url => {:action => post_tag, :id =>
I have a form for creating an album like following: # app/views/albums/new.html.erb <h2>Details of
I have the following Action to display a form with 3 items : [HttpGet]
I have the following code for my login view: <?php echo $session->flash('auth'); echo $this->Form->create('User',

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.