Click here to Skip to main content
15,913,941 members

session value retrievel

Latest Revision
I have retrieved a value from database into session as
with query i got username from database into var p
then
C#
session["username"]=p.ToString();


if i want to print the name into label
i write
C#
label.Text=session["username"].ToString();

it should print only username but it is printing column name too(like {username=aman})
what should i do?
remember i'm getting value from database
Posted 6-Nov-12 18:04pm by WebMaster.
Tags: