Faisal Ansari

Faisal Ansari

  • NA
  • 451
  • 833.8k

How can we convert sqldataReader to String

Oct 5 2011 2:12 AM
hello guys how r u ?

my question is that, i have to convert sqldataReader to string and i tried this code...

cmd.CommandText = "select ppassword from Registration where pemail=@pemail";

cmd.Parameters.Add("@pemail", txtEmail.Text);

reader = cmd.ExecuteReader();

string str = reader.ToString();

Response.Write(str);


but it could not be possible so please guide me and tell me the solution for this.

Thanks.

Reply Soon...


Answers (2)