using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
DataClasses1DataContext db = new DataClasses1DataContext();
protected void Page_Load(object sender, EventArgs e)
{
var cs = from c in db.useralls
select new
{
CustomerID = c.iduser,
ContactName = c.name,
Cotactlastname = c.last_name,
};
textbox1.Text = customerID;
}
}
}
Tag : .NET, Ms SQL Server 2008, Web (ASP.NET), LINQ, C#, VS 2010 (.NET 4.x)