Hi,
Try This.
SqlCommand command = new SqlCommand("Select * From tblcart where uname='"+Session["uname"].ToString() +"' ",con );
Problem in your query may be missing single quote Or Session variable(object) conversion , Session variable(object) cannot convert automatic you have to convert it.
Thanks
Mark it as Ans if it resolve your query...
Asp.Net/C#.Net Help[
^]
Hemant Singh