Friday, February 02, 2007

Send Mail Asp.NET

How to Send e-mail from asp.net?

MailMessage mail = new MailMessage();
mail.To = "me@something.com";
mail.From = "you@anything.com";
mail.Subject = "this is nothing email.";
mail.Body = "Our text here ";
mail.BodyEncoding = System.Text.Encoding.GetEncoding( "ASCII" );
SmtpMail.SmtpServer = "servername";
SmtpMail.Send( mail );


for further references visit

http://www.systemwebmail.com/faq/3.aspx


How to Change DropdownList selectedItem Dynamically??


1.first clear the selection by dropDown1.ClearSelection() method

2. Now, change your selection accordingly by
dropDown1.Items.FindByText(str).Selected=true;

that's it .... :))

1 comments:

Anonymous said...

Wird nicht hinausgehen! cialis ohne rezept levitra kaufen [url=http//t7-isis.org]levitra generika preisvergleich[/url]