Click here to Skip to main content
15,888,042 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SQLStatement Pin
Nishant Singh26-Jul-10 1:54
Nishant Singh26-Jul-10 1:54 
QuestionGrid view with asp.net model pop up Pin
Amit Patel198525-Jul-10 1:00
Amit Patel198525-Jul-10 1:00 
AnswerRe: Grid view with asp.net model pop up Pin
Sandeep Mewara25-Jul-10 6:24
mveSandeep Mewara25-Jul-10 6:24 
AnswerRe: Grid view with asp.net model pop up Pin
koolprasad200325-Jul-10 18:06
professionalkoolprasad200325-Jul-10 18:06 
QuestionMVC and Entity framework Pin
future383924-Jul-10 20:13
future383924-Jul-10 20:13 
AnswerRe: MVC and Entity framework Pin
Gil Fink24-Jul-10 20:32
Gil Fink24-Jul-10 20:32 
GeneralRe: MVC and Entity framework Pin
future383926-Jul-10 13:58
future383926-Jul-10 13:58 
GeneralRe: MVC and Entity framework Pin
Gil Fink27-Jul-10 20:50
Gil Fink27-Jul-10 20:50 
Hi,
The controller should be placed in the controllers directory in the MVC project.
About the two lines of code you wrote:
ViewData.Model = _db.MovieSet.ToList();
ViewData.Model = (from m in _db.MovieSet select m).ToList();

They are doing the same thing. The first is getting all the movies form the database and returns them as list using the context you use. The second uses Linq to Entities to return all the movies from the database as list.
Questiondatagridview Pin
ptvce24-Jul-10 19:59
ptvce24-Jul-10 19:59 
AnswerRe: datagridview Pin
thatraja24-Jul-10 20:08
professionalthatraja24-Jul-10 20:08 
GeneralRe: datagridview Pin
ptvce24-Jul-10 21:20
ptvce24-Jul-10 21:20 
GeneralRe: datagridview Pin
nagendrathecoder25-Jul-10 19:57
nagendrathecoder25-Jul-10 19:57 
Answer[Cross Post] Re: datagridview Pin
Sandeep Mewara24-Jul-10 22:21
mveSandeep Mewara24-Jul-10 22:21 
AnswerRe: datagridview Pin
raju melveetilpurayil25-Jul-10 0:05
professionalraju melveetilpurayil25-Jul-10 0:05 
AnswerRe: datagridview Pin
Tej Aj25-Jul-10 20:36
Tej Aj25-Jul-10 20:36 
QuestionProblems using UserControl Pin
FJJCENTU23-Jul-10 23:21
FJJCENTU23-Jul-10 23:21 
QuestionEntity framework Pin
future383923-Jul-10 21:47
future383923-Jul-10 21:47 
AnswerRe: Entity framework Pin
Peace ON23-Jul-10 21:58
Peace ON23-Jul-10 21:58 
AnswerRe: Entity framework Pin
Gil Fink23-Jul-10 22:51
Gil Fink23-Jul-10 22:51 
QuestionObject relation mapping Pin
future383923-Jul-10 21:44
future383923-Jul-10 21:44 
AnswerRe: Object relation mapping Pin
Sandeep Mewara23-Jul-10 21:50
mveSandeep Mewara23-Jul-10 21:50 
AnswerRe: Object relation mapping Pin
Sathesh Sakthivel24-Jul-10 2:27
Sathesh Sakthivel24-Jul-10 2:27 
AnswerRe: Object relation mapping PinPopular
Ankur\m/24-Jul-10 2:59
professionalAnkur\m/24-Jul-10 2:59 
Questionxmldatasource + rss + retrieve image Pin
Thommie.h23-Jul-10 8:06
Thommie.h23-Jul-10 8:06 
AnswerRe: xmldatasource + rss + retrieve image Pin
Peace ON23-Jul-10 19:22
Peace ON23-Jul-10 19:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.