var program = (from u in dc.Trans
join td in dc.TrDetails
on u.TranID equals td.TranID
join Ins in dc.Instructors
on td.InstructorID equals Ins.InstructorID
[font=Verdana]where u.TranID == Request.Params["TranID"].ToString()[/font]
select new
{
u.TranID,
u.TranName,
u.Day,
u.Fee,
u.TimeStart,
u.TimeEnd,
u.Amount,
td.Time,
td.Duration,
Ins.FirstName,
Ins.LastName,
td.Language,
td.Objectives_File
}).FirstOrDefault();
Tag : ASP.NET, MySQL, Ms SQL Server 2008, LINQ, C#
var program = (from u in dc.Trans
join td in dc.TrDetails
on u.TranID equals td.TranID
join Ins in dc.Instructors
on td.InstructorID equals Ins.InstructorID
where u.TranID == Request.Params["TranID"].ToString()
select new
{
u.TranID,
u.TranName,
u.Day,
u.Fee,
u.TimeStart,
u.TimeEnd,
u.Amount,
td.Time,
td.Duration,
Ins.FirstName,
Ins.LastName,
td.Language,
td.Objectives_File
}).FirstOrDefault();