SyntaxFix
Write A Post
Hire A Developer
Questions
I used the code below and it worked for me.
String email=""; SqlDataReader reader=cmd.ExecuteReader(); if(reader.Read()){ email=reader["Email"].ToString(); } String To=email;