i want to make a website that will be one form at first page. So user get on that website and they can fill my form.
After I login as Admin to see that forms in grid t开发者_Python百科hat users filled.
Just to have overview of forms when I log as Admin.
p.s gusts on site, don't need to be any users. They are filling that Form.
So what is the best way to do that ?
http://www.asp.net/mvc/tutorials/mvc-music-store-part-1
This is the MusicStore tutorial on Microsoft's dedicated .net site. It will walk you through MVC3, creating data models and storing them in a database.
If you want the MVC2 demo (which since MVC3 can run both MVC2 and MVC3 applications on the MVC3 dlls, I'd advise just using MVC3) you can get it through the archives on the site.
This sample code will also walk you through how to display data from the database on an EF query.
Also, for security sakes, you can use [Authorize(Roles="Admin")] and the provided SQL Server Role Provider.
To create the database tables to accommodate the Sql Server Role Provider you can check out: http://msdn.microsoft.com/en-us/library/ms229862(v=vs.80).aspx
If you have specific questions on how to use this technology please let me know!
精彩评论