Cannot implicitly convert type 'void' to 'string' how to solve ths error

Jan 11 2011 1:41 AM

Hai,
using datareader i retrieve values from the table i want to display that in a label box but the error occurs,
like
Cannot implicitly convert type 'void' to 'string'
 while(rdr.Read()){
label1.Text = Response.Write(rdr[
"name"].ToString()); }
how to solve this,
Thank u,

Answers (1)