Solved

mvc, view, asp.net

Posted on 2013-11-06
2
304 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now