LINQ quries :
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Dataset dataContext = new Dataset();
//bind tables or data source in dataset
var query = from contact in dataContext.tablename where tablename.columnname==1 select contact; GridView1.DataSource = query; GridView1.DataBind(); } }
For more detail.....click here..........
No comments:
Post a Comment