Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys
i am using scaffolding to generate a view where i can edit ,delete records,my table consists of three fields the username ,password and email which i pass as a list to the view to render it!
the problem i am facing is that the username and password are displayed along the edit delete actions but the respective email columns are not displayed!
i guess its due to the the email column being the primary key,but is there any other alternative to perform the desired action without altering the structure of my table!!
please let me know if any


C#
amespace mvcapplication_scaffold_.Controllers
{
    public class homeController : Controller
    {
        DataClasses1DataContext dd = new DataClasses1DataContext();
        //
        // GET: /home/

        public ActionResult Index()
        {
            var employeelist = dd.logins.ToList();
            return View(employeelist);
        }

    }
}
Posted
Updated 10-Apr-14 1:00am
v2
Comments
Snesh Prajapati 10-Apr-14 6:11am    
Can you write the code which you are writing in your model?

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