Click here to Skip to main content
15,870,165 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam use MVC Partial view .I have a two of Page AddPoll.cshtml and Listpoll.cshtml. page AddPoll.cshtml use Partial view.
I use AddPoll:partial view page to be placed a partial view with Listpoll.
HTML
@Html.Partial("/Areas/admin/Views/Poll/AddPoll.cshtml",new Mvc_baker.Areas.admin.Models.pollquestion());


this code AddPoll

HTML
  @model Mvc_baker.Areas.admin.Models.pollquestion

<link href="~/Content/bootstrapvalidform.css" rel="stylesheet" />
{@using (Html.BeginForm(actionName: "AddPoll", controllerName: "Poll"))

  

         @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <form class="">
            <div class="col-md-6">
                <div class="panel panel-primary">
                                     <label class="control-label">پرسش</label>
                                     @Html.TextBoxFor(m => m.QuestionText, new { id = "Name",style="width:450px", @class = "form-control" })
                                @Html.ValidationMessageFor(m => m.QuestionText)
                                  <input class="btn btn-primary btn-default" name="commit" value="register" type="submit">
                        </div>
     </div>
        </form>
    }

When I click the register button control action is Not applicable

When the breakpoint action on control and I can not run
Posted
Updated 14-Feb-15 22:39pm
v2
Comments
Kornfeld Eliyahu Peter 15-Feb-15 5:43am    
Are you sure you can access the specified area?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900