it means that you are missing a quotation mark
SqlCommand command = new SqlCommand("SELECT CompanyLogo FROM CompleteUserDetails WHERE UserId = (SELECT UserId FROM aspnet_User WHERE UserName='", connect);
you are also missing the a value for "Username" variable you are trying to grab in your secondary query. if you need to, break out the two queries... or just complete the one you have there
Code:
SqlCommand command = new SqlCommand("
SELECT CompanyLogo FROM CompleteUserDetails WHERE UserId =
(SELECT UserId FROM aspnet_User WHERE UserName='__________')", connect);
Bookmarks