Hi Team
I have this form that have created, i have created a table name on the database, i want to find out from this logic how do i submit it to that table name? Do i need to create store procedure as well? Mine does not do any crud operation, just it need to send this raw data to the table.
- @using eNtsaRegistrationTraining.Models
- @model EditTrainingRegFormViewModel
- @{
- ViewBag.Ttile = "Dashboard";
- Layout = "~/Views/Shared/_HomeLayout.cshtml";
- }
- class="z-inex" style="width:1000px;">class="register-logo">class="card">class="card-body register-card-body">
"~/Images/eNtsa.png" />
Training Course Registration:Motion MasterClass
Course date: 25-27 February 2020
- Note:Please note your registration is submit approval as seats for this course is limited. Once your registration is confirmed, you will receive a quote for subject to your confirmation
- followed by an invoice.
- @using (Html.BeginForm("editRegForm", "Home", FormMethod.Post, new { @role = "form" }))
- {
- @Html.AntiForgeryToken()
class="row">- ="Title">Title:
class="input-group col-md-3 col-md-offset-3 col-sm-3 col-xs-3 ">class="input-group pull-right">- @Html.TextBoxFor(m => m.Title, new { @class = "form-control", type = "text", id = "title", autofocus = "autofocus", placeholder = "Title", required = "required" })
class="input-group-append">class="input-group-text">
class="input-group mb-2">class="input-group-prepend">- ="firstName">Name:
class="input-group col-md-7 col-md-offset-7 col-sm-7 col-xs-7">class="input-group pull-right">- @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", type = "text", id = "firstname", autofocus = "autofocus", placeholder = "First Name", required = "required" })
- @Html.TextBoxFor(m => m.LastName, new { @class = "form-control", type = "text", id = "lastname", autofocus = "autofocus", placeholder = "Last Name", required = "required" })
class="input-group-append">class="input-group-text">
class="row">- ="Position">Position
class="input-group col-md-3 col-md-offset-3 col-sm-3 col-xs-3">class="input-group pull-right">- @Html.TextBoxFor(m => m.Position, new { @class = "form-control", type = "text", id = "position", autofocus = "autofocus", placeholder = "Position", required = "required" })
class="input-group-append">class="input-group-text">
class="row">- ="Address">Company
class="input-group col-md-3 col-md-offset-3 col-sm-3 col-xs-3">class="input-group pull-right">- @Html.TextBoxFor(m => m.Company, new { @class = "form-control", type = "text", id = "company", autofocus = "autofocus", placeholder = "Company", required = "required" })
class="input-group-append">class="input-group-text">
class="row">- ="Address">Address
class="input-group col-md-6.9 col-md-offset-6 col-sm-6 col-xs-6">class="input-group pull-left">- @Html.TextBoxFor(m => m.Address, new { @class = "form-control", type = "text", id = " street address", autofocus = "autofocus", placeholder = "Street Address", required = "required" })
class="input-group-append">class="input-group-text">
class="row">class="input-group col-md-8.0 col-md-offset-6 col-sm-6 col-xs-6">class="input-group pull-right">- @Html.TextBoxFor(m => m.Address, new { @class = "form-control", type = "text", id = " street address line 2", autofocus = "autofocus", placeholder = "Street Address Line 2", required = "required" })
class="input-group-append">class="input-group-text">
class="input-group mb-2">class="input-group-prepend">class="input-group col-md-7 col-md-offset-7 col-sm-7 col-xs-7">class="input-group pull-right">- @Html.TextBoxFor(m => m.City, new { @class = "form-control", type = "text", id = "city", autofocus = "autofocus", placeholder = "City", required = "required" })
- @Html.TextBoxFor(m => m.State, new { @class = "form-control", type = "text", id = "state", autofocus = "autofocus", placeholder = "State/ Province", required = "required" })
class="input-group-append">class="input-group-text">
class="input-group mb-2">class="input-group-append">class="input-group col-md-3 col-md-offset-3 col-sm-2 col-xs-2">class="input-group pull-right">- @Html.TextBoxFor(m => m.Code, new
- {
- @class = "form-control",
- type = "text",
- id = "postal code",
- autofocus = "autofocus",
- placeholder = "Postal/Zip Code"
- })
- @Html.ValidationMessageFor(m => m.Code, "", new { @class = "text-danger" })
class="input-group-append">class="input-group-text">class="row">- "Email">Email:
class="input-group col-md-4 col-md-offset-2 col-sm-2 col-xs-2">class="input-group pull-right">- @Html.TextBoxFor(m => m.Email, new { @class = "form-control", type = "email", id = "inputEmail" , placeholder = "[email protected]",
- required = "required",
- pattern = @"[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$", title = "This field is required"})
- @Html.ValidationMessageFor(m => m.Email, " ", new { @class = "text-danger" })
class="input-group-append">class="input-group-text">
class="row">- ="Attendee Cell Number">Cell Number:
class="input-group col-md-3 col-md-offset-1 col-sm-1 col-xs-1">class="input-group pull-right">- @Html.TextBoxFor(m => m.Cell_Number, new { @class = "form-control", type = "text", autofocus = "autofocus", required = "required" })
- @Html.ValidationMessageFor(m => m.Cell_Number, " ", new { @class = "text-danger" })
class="input-group-append">class="input-group-text">
class="row">- ="Please verify that you are a human">Please verify that you are a human
class="input-group col-md-3 col-md-offset-1 col-xs-1">class="input-group pull-left">- @using (Html.BeginForm("FormSubmit", "Home", FormMethod.Post))
- {
class="g-recaptcha" data-sitekey="6LezHOIUAAAAANq0FvFWWbvBlb6Vc1Y2YwnixVqJ">- }
class="row">- ="Dietary Requirements">Dietary Requirements
class="input-group col-md-offset-3 col-sm-6 col-xs-6">class="input-group pull-left">
class="form-group">
- class="btn btn-primary">Submit
- }
Ronika JencyPosted Mar 23, 2020, 7:34 AM