getting data with store procedure
A variable that I get from store procedure is a blog.
I use this code but I have to put a result into byte array, because it is a blog.
SqlConnection conn =
byte[] Profile =null;
conn =new
SqlConnection(sConnString);
conn.Open() ;
SqlCommand cmd =new SqlCommand("GetProfile", conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add (new SqlParameter ( "@UserID", UserID ));
SqlDataReader ProfileReader = cmd.ExecuteReader(CommandBehavior.SequentialAccess);

