0

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);
Response.Redirect("otherpage.aspx",false);

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.

2
Contributors
2
Replies
9
Views
4 Years
Discussion Span
Last Post by cyberdaemon
0

_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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.