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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Jan 23, 2017, 10:52 PM EST
Anjali KhanRank #1,649 · 931 reputationPosted Jan 24, 2017, 12:43 AM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Jan 24, 2017, 12:48 AM EST
Anjali KhanRank #1,649 · 931 reputationPosted Jan 24, 2017, 3:26 AM EST
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>
}