Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two pages one with gridview and another one with form with textboxes . on edit click on gridview i m passing id to form page . i want the selected row to be displayed in textboxes . how to do it ..?


my entity framework query result is var variable that is a list

public void getData()
{
using (db1 = new ApplicationEntities1())
{
var result = (from std in db1.Products
join Con in db1.Categories on std.CategoryId equals Con.CategoryId
where std.CategoryId == Con.CategoryId
select new
{
std.ProductId,
std.ProductName,
std.Description,
std.Image,
Con.CategoryName,
std.IsActive
}).ToList();

txtProductName.Text = result.ProductName; //ERROR
}
}

doing this is giving me the error


I M NEW TO ENTITY FRAMEWORK PLZ HELP ..!
Posted
Updated 30-Jul-14 23:59pm
v2

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