Skip to content
Loading
In the mvc-5 tab formate data save in sql but not save  
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.ConfirmPassword, htmlAttributes: new { @class = "control-label col-md-6 text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.EditorFor(model => model.ConfirmPassword, new { htmlAttributes = new { @placeholder = "Enter Confirm Password", @class = "form-control text1" } })  
  • @Html.ValidationMessageFor(model => model.ConfirmPassword, "", new { @class = "text-danger" })  
  •   
  •   
  • @*class="form-group">  
  • @Html.LabelFor(model => model.intCountry_ID, htmlAttributes: new { @class = "control-label col-md-6 text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.EditorFor(model => model.intCountry_ID, new { htmlAttributes = new { id = "phone", name = "phone", @class = "form-control text-dark text1" } })  
  • @Html.ValidationMessageFor(model => model.intCountry_ID, "", new { @class = "text-danger" })  
  •   
  • *@  
  •   
  • class="tab">  
  • class="form-group">  
  • @Html.LabelFor(model => model.intTitle_ID, new { @class = " col-md-6 control-label text-primary font-weight-bold " })  
  • class="col-md-12">  
  • @Html.DropDownListFor(m => m.intTitle_ID, new SelectList(Model.TitlesList, "intTitle_ID", "ChrTitle_Name"), "Select Title", new { @class = "form-control text1" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.chrFirst_Name, htmlAttributes: new { @class = "control-label col-md-6 text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.EditorFor(model => model.chrFirst_Name, new { htmlAttributes = new { @placeholder = "Enter your first name", @class = "form-control text1" } })  
  • @Html.ValidationMessageFor(model => model.chrFirst_Name, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.chrMid_Name, htmlAttributes: new { @class = "control-label col-md-6 text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.EditorFor(model => model.chrMid_Name, new { htmlAttributes = new { @placeholder = "Enter your Middle name", @class = "form-control text1" } })  
  • @Html.ValidationMessageFor(model => model.chrMid_Name, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.chrLast_Name, htmlAttributes: new { @class = "control-label col-md-6 text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.EditorFor(model => model.chrLast_Name, new { htmlAttributes = new { @placeholder = "Enter your Last name", @class = "form-control text1" } })  
  • @Html.ValidationMessageFor(model => model.chrLast_Name, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.DOB, htmlAttributes: new { @class = "control-label col-md-6 text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.EditorFor(model => model.DOB, new { htmlAttributes = new { @placeholder = "DD/MM/YYYY", @class = "form-control datepicker text1" } })  
  • @Html.ValidationMessageFor(model => model.DOB, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.chrMerital_Status_Self, new { @class = "col-md-6 control-label text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.EnumDropDownListFor(model => model.chrMerital_Status_Self, "Select Marital Status", new { @class = "form-control text1" })  
  •   
  •   
  • @*class="form-group">  
  • @Html.LabelFor(model => model.chchrGender, new { @class = "control-label col-md-6 text-primary font-weight-bold" })  
  • class="col-md-12">  
  • @Html.RadioButtonFor(m => m.chchrGender, "Male") Male  
  • @Html.RadioButtonFor(m => m.chchrGender, "Female")Female  
  • @Html.RadioButtonFor(m => m.chchrGender, "Other")Other  
  •   
  • *@  
  • @*class="form-group">  
  • @Html.LabelFor(model => model.chrCountry_Name, new { @class = "control-label col-md-6 text-primary font-weight-bold " })  
  • class="col-md-12">  
  • @Html.DropDownListFor(m => m.chrCountry_Name, new SelectList(Model.ContryList, "chrCountry_Name", "chrCountry_Name"), "Select Country", new { @class = "form-control text1" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.chrState_Name, new { @class = "control-label col-md-6 text-primary font-weight-bold " })  
  • class="col-md-12">  
  • @Html.DropDownListFor(m => m.chrState_Name, new SelectList(Model.StateList, "chrState_Name", "chrState_Name"), "Select State", new { @class = "form-control text1" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.chrCity_Name, new { @class = "control-label col-md-6 text-primary font-weight-bold " })  
  • class="col-md-12">  
  • @Html.DropDownListFor(m => m.chrCity_Name, new SelectList(Model.CityList, "chrCity_Name", "chrCity_Name"), "Select City", new { @class = "form-control text1" })  
  •   
  • *@  
  •   
  •   
  • "overflow:auto;">  
  • "float:right;">  
  • "submit" id="prevBtn" onclick="nextPrev(-1)">Previous  
  • "submit" value="Register" id="nextBtn" onclick="nextPrev(1)">Next  
  •   
  •   
  • "text-align:center;margin-top:40px;">  
  • class="step">  
  • class="step">  
  •   
  • }  
  •   
  • 1 Reply

    Know the answer? Post it — somebody with the same question will find it here.