2
Answers

How can we convert sqldataReader to String

Ask a question
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)