Create registration form using db approach in mvc
Hi frnds I am creating a registration form using file upload control.in that m using
Entity framework so how to create using this in vs 2013
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anjali KhanPosted Jan 24, 2017, 8:26 AM
Hi Manas
below the my Reg Form code
@{
Layout = null;
}
@using (Html.BeginForm()){
@Html.ValidationSummary(true)
@lt; <fieldset>
<legend>legend>
<ol>
<li>
@Html.LabelFor(m => m.Company)
@Html.TextBoxFor(m => m.Company, new { maxlength = 50 })
@Html.ValidationMessageFor(m => m.Company)
li>
<li>
@Html.LabelFor(m => m.Category)
@Html.TextBoxFor(m => m.Category)
@Html.ValidationMessageFor(m => m.Category)
li>
<li>
@Html.LabelFor(m => m.Summary)
@Html.TextBoxFor(m => m.Summary, new { maxlength = 500, value = ViewBag.Selconfirmpwd })
@Html.ValidationMessageFor(m => m.Summary)
li>
<li>
@Html.LabelFor(m => m.Issue_Type)
@Html.TextBoxFor(m => m.Issue_Type)
@Html.ValidationMessageFor(m => m.Issue_Type)
li>
<li>
@Html.LabelFor(m => m.Priority)
@Html.TextBoxFor(m => m.Priority)
@Html.ValidationMessageFor(m => m.Priority)
li>
<li>
@Html.LabelFor(m => m.Assign)
@Html.TextBoxFor(m => m.Assign)
@Html.ValidationMessageFor(m => m.Assign)
li>
<li>
@Html.LabelFor(m => m.Due_Date)
@Html.TextBoxFor(m => m.Due_Date)
@Html.ValidationMessageFor(m => m.Due_Date)
li>
<li>
@Html.LabelFor(m => m.Issue_Description)
@Html.TextBoxFor(m => m.Issue_Description)
@Html.ValidationMessageFor(m => m.Issue_Description)
li>
<li>
@Html.LabelFor(m => m.Participant_List)
@*@Html.DropDownListFor(m => m.Participant_List, new SelectList(ViewBag.User, "ID", "Name", ViewBag.SelUser), new { style = "width:310px" })*@
@Html.ListBox("User", new SelectList(ViewBag.MyList, "RegisterId", "User"))
li>
ol>
<input type="submit" value="Create" />
fieldset>
}
Manas MohapatraPosted Jan 24, 2017, 5:48 AM
Anjali KhanPosted Jan 24, 2017, 5:43 AM
Manas MohapatraPosted Jan 24, 2017, 3:52 AM