Exemplo n.º 1
0
        protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            ustcsseDataContext db = new ustcsseDataContext();

            e.Result = from p in db.Student
                       where p.StudentID == stuID
                       select p;
        }
Exemplo n.º 2
0
        protected void LinqDataSource1_Selecting1(object sender, LinqDataSourceSelectEventArgs e)
        {
            string             courseid = (string)Session["CourseID"];
            ustcsseDataContext db       = new ustcsseDataContext();

            e.Result = from p in db.SelectInfo
                       where p.CourseID == courseid
                       select p;
        }