Solved

mvc, view, asp.net

Posted on 2013-11-06
2
313 Views
Last Modified: 2013-11-22
<form
                                         method="post"
                                         action="/xxx?inputState=@inputState&inputBond=@inputBond"  
                                         enctype="multipart/form-data"
                                         >

How to convert above to @html.begin()?
in razor/c#/asp.net/mvc
0
Comment
Question by:solution1368
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Expert Comment

by:Stephan
ID: 39630172
How is your route for the form action?
/xxx?inputState=@inputState&inputBond=@inputBond

Open in new window

0
 
LVL 23

Accepted Solution

by:
Ioannis Paraskevopoulos earned 500 total points
ID: 39630203
@using (Html.BeginForm("YourActionName", "YourControllerName", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <fieldset>
        @Html.EditorFor(m => m.Phone)
        @Html.EditorFor(m => m.SSN)
        <input type="submit" value="Submit" />
    </fieldset>
}

Open in new window


Just replace YourActionName and YourControllerName with the appropriate values.

Giannis
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question