Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

To begin with, I am an intermediate C# Developer (Windows Forms). I am well aware of this site and I am a regular user and when ever I ask a question I usually do show my working or code.

Now, I have have just been introduced to MVC and C#.Net in which I am completely a beginner, matter of fact I am dummy to it. I have played around with it (MVC) and I have got a little bit understanding of how the folders work.

My main question is, I would really like to know how to get data from a users inputs from the browser and save to database by a click of a button, and I also how to display data to user in the browser.

(Quick Scenario)

Making a project in mvc that takes a users first name and last name via textbox and saving the provided data onto a database via button click. Also displaying the data (Users first and last name) onto the browser.

I can do this scenario above in windows form with ease but I can't do it in MVC & I have tried and tried.

So basically is there anyone who can run this step by step please ? i would really appreciate it really really will.

Basically what I would like to know and see is :
1) creating the database table
2) creating the textboxes and giving ID's to which columns of the table they are inserting the data in.
3) running the sql commands via button click.
4) retrieving the tables.
5) if there is anything else you would like me to know please let me know.
As I said I would do this in windows forms with ease!

NOTE: I understand HTML and Javascript (But I need to know how they become handful HTML)

Kind Regards
Abraham
Posted

Hi, ASP.NET MVC has some conventions and if you follow them it works "Automagically" they say. The awesomeness is that it doesn't bind you to follow the conventions. You can make your own rule here, but yet you need to follow the MVC pattern.

In my opinion, the following is a very good starting point to jump start your MVC development. Though it is with MVC4, it really is worth following.

http://www.microsoftvirtualacademy.com/training-courses/developing-asp-net-mvc-4-web-applications-jump-start[^]
 
Share this answer
 
Comments
1Future 26-Jul-14 12:58pm    
Thank you! I shall Indeed have a look and follow it
Learn MVC[^]

Follow this link. Ask for help if you get stuck.
 
Share this answer
 
Hi...

If your beginner to MVC then pls refere my blog.
I have also created videos explaining it.
A simple demo on MVC Entity framework and JQGrid.

I guess it will be helpfull for you.

http://dotnetsourcedileep.blogspot.in/2014/06/test.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900