Good day,

I am facing a trouble with my project. i want to load the database in my session but i dont have idea on how to do it.

session["getName"] = _BLL.GetName(_myEntities);

on my master page.

myLabel.Text = session["getName"].ToString();

that's my code. i want to get the record on the database. i mean whole record.

_BLL.GetName(_myEntities); i hope this method returns string. Quick watch this..
myLabel.Text = session["getName"].ToString(); needs to return string... Check the is null condition with string and then convert it to string.