Click here to Skip to main content
15,894,540 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: create remote desktop with asp.net Pin
Shameel12-Nov-09 6:39
professionalShameel12-Nov-09 6:39 
QuestionGTalk Pin
sris 42611-Nov-09 23:49
sris 42611-Nov-09 23:49 
AnswerRe: GTalk Pin
Abhishek Sur11-Nov-09 23:55
professionalAbhishek Sur11-Nov-09 23:55 
AnswerRe: GTalk Pin
Shameel12-Nov-09 6:43
professionalShameel12-Nov-09 6:43 
AnswerRe: GTalk Pin
saurabh8april12-Nov-09 20:18
saurabh8april12-Nov-09 20:18 
QuestionIdentify parent control from child control Pin
mmdullah11-Nov-09 23:39
mmdullah11-Nov-09 23:39 
AnswerRe: Identify parent control from child control Pin
FEMDEV12-Nov-09 3:42
FEMDEV12-Nov-09 3:42 
QuestionRegarding "forgot password" query Pin
Amit Spadez11-Nov-09 23:36
professionalAmit Spadez11-Nov-09 23:36 
I want to have some information regarding sending password to the mailId given in the textBox .
The code is made as follows:
I have made login form in which there is button "Forgot Password". After
clicking on it, there'll display a forgot password form in which u have to enter your email to get to know the password.

Asp.Net code:

SqlConnection conn;
btn_forgor_password_submit(sender object, EventArgs e)
{
SqlConnection conn;

string q = "select password from login where email='" + TextBox1.Text + "'";

conn = new SqlConnection("data source=.\\sqlexpress;integrated security=true;initial catalog=master");

cn.Open();

cmd = new SqlCommand(q, cn);

MailMessage mail = new MailMessage();

mail.To = TextBox1.Text;

mail.From = "hradmin@abc.com";

mail.Body = "ur pass is:" +cmd.ExecuteScalar().ToString();

SmtpMail.SmtpServer = "mail.abc.com";

SmtpMail.Send(mail);

Label1.Text = "mail has been sent";

cn.Close();

cmd.Dispose();

}


in the above code there is error "The server response was: 550 5.7.1 Unable to relay for emaiid@domain.com" . Also, there is warning while debugging the code "system.web.Mail.MailMessage is obsolete".

plz help me how we can get password and send automatically from the database to the emailId given in the textBox named "TextBox1.Text".
AnswerRe: Regarding "forgot password" query Pin
Eduard Keilholz11-Nov-09 23:48
Eduard Keilholz11-Nov-09 23:48 
GeneralRe: Regarding "forgot password" query Pin
Amit Spadez12-Nov-09 0:00
professionalAmit Spadez12-Nov-09 0:00 
GeneralRe: Regarding "forgot password" query Pin
FEMDEV12-Nov-09 3:53
FEMDEV12-Nov-09 3:53 
QuestionLINQ Pin
Amit Patel198511-Nov-09 23:02
Amit Patel198511-Nov-09 23:02 
AnswerRe: LINQ Pin
Eduard Keilholz11-Nov-09 23:37
Eduard Keilholz11-Nov-09 23:37 
AnswerRe: LINQ Pin
Shameel12-Nov-09 6:48
professionalShameel12-Nov-09 6:48 
QuestionLooking for solution / article for multi parameters search engine Pin
elidotnet11-Nov-09 21:40
elidotnet11-Nov-09 21:40 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Christian Graus11-Nov-09 22:12
protectorChristian Graus11-Nov-09 22:12 
GeneralRe: Looking for solution / article for multi parameters search engine Pin
elidotnet11-Nov-09 22:34
elidotnet11-Nov-09 22:34 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Abhishek Sur11-Nov-09 22:22
professionalAbhishek Sur11-Nov-09 22:22 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Abhishek Sur11-Nov-09 22:29
professionalAbhishek Sur11-Nov-09 22:29 
QuestionCrystal Reports showing blank page after few hours in Asp.net Pin
hammadahsan11-Nov-09 20:55
hammadahsan11-Nov-09 20:55 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
sashidhar11-Nov-09 21:46
sashidhar11-Nov-09 21:46 
GeneralRe: Crystal Reports showing blank page after few hours in Asp.net Pin
hammadahsan11-Nov-09 22:04
hammadahsan11-Nov-09 22:04 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
Abhishek Sur11-Nov-09 22:07
professionalAbhishek Sur11-Nov-09 22:07 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
Shameel12-Nov-09 6:53
professionalShameel12-Nov-09 6:53 
QuestionStrange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 20:41
professionalVimalsoft(Pty) Ltd11-Nov-09 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.