protected void Page_Load(object sender, EventArgs e) { s_prof prof = new s_prof(); s_reg reg = new s_reg(); s_log slog = new s_log(); studentDataContext db = new studentDataContext(); if (Session["usernm"] == null) { Console.WriteLine("ERRORRRRR"); } else { var log = (from s in db.s_profs join m in db.s_regs on s.reg_id equals m.reg_id where m.susnm == Convert.ToString(Session["usernm"]) select new { s.stdname, s.stdcity, s.stdmob,s.stdemail,m.smobile}); TextBox1.Text = prof.stdname; TextBox2.Text = prof.stdcity; TextBox3.Text = prof.stdmob; TextBox4.Text = prof.stdemail; TextBox5.Text = reg.smobile; } } }
log
prof
reg
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)