Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
14
Reply
How to Store Data into a table of SQL in MVC without model
Mark Tabor
Dec 18 2016 5:32 AM
437
Reply
How can i store data from a form created in mvc razor view without a model class and entity framework , I have wrote a simple method but as in razor view i have
@Html.TextBox("txtPrice", null, new { @class = "form-control valid", @data_val = "true", @data_val_required = "Property Price is required" })
How to get this textbox value in my c# code either i have to use Query String or what else is the technique i am good with web forms and i web forms we have runat="Server" attribute to access the text box but in razor i do not know how to achieve this.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
14
)
Next Recommended Forum
What is bin ? and use of in the MVC structure ?
sammy.js in ASP.NET MVC with SSRS Reports Integration