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

ASP.NET

 
GeneralRe: SQLStatement Pin
arsha_midy25-Jul-10 20:50
arsha_midy25-Jul-10 20:50 
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 
Hi, Firstly, thank you for your help.

Look, I followed the steps. I created a Controller.(Customer Controller)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Practice1.Models;
using Practice1.Models.Repository;


namespace Practice1.Controllers
{
    [HandleError]
    public class CustomerController : Controller
    {
        TestDBEntities _db;

        public CustomerController()
        {
           TestDBEntities _db = new TestDBEntities();
        }

        public ActionResult Index()
        {
            ViewData.Model = _db.Tbl_Customer.ToList();
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}


AS, I am following your link, I got confused. Could you please tell me where I have to add this code? which part? do I need to create another class
ViewData.Model = _db.MovieSet.ToList();
ViewData.Model = (from m in _db.MovieSet select m).ToList();

GeneralRe: MVC and Entity framework Pin
Gil Fink27-Jul-10 20:50
Gil Fink27-Jul-10 20:50 
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 

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.