Click here to Skip to main content
15,907,233 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTextBoxWatermark Pin
netJP12L11-Sep-07 7:43
netJP12L11-Sep-07 7:43 
Questionjavacript popups Pin
A.Vishal11-Sep-07 7:07
A.Vishal11-Sep-07 7:07 
QuestionDrop Down list Pin
seemamltn11-Sep-07 6:56
seemamltn11-Sep-07 6:56 
AnswerRe: Drop Down list Pin
A.Vishal11-Sep-07 7:12
A.Vishal11-Sep-07 7:12 
GeneralRe: Drop Down list Pin
seemamltn11-Sep-07 7:30
seemamltn11-Sep-07 7:30 
GeneralRe: Drop Down list Pin
N a r e s h P a t e l11-Sep-07 18:32
N a r e s h P a t e l11-Sep-07 18:32 
QuestionCharting Software Pin
RahulOP11-Sep-07 6:53
RahulOP11-Sep-07 6:53 
QuestionEmail in ASP.NET [modified] Pin
.NET- India 11-Sep-07 4:55
.NET- India 11-Sep-07 4:55 
Hello Everyone,

I'm sending mail through ASP.NET and it's rocking. But whenever i'm trying to send the text given below then an error is occuring.

"Some formatted text like bold italic and etc"

Actually i'm creating my own emailEditor through which i can bold,italic and etc. facilities being provided.

And it's working great but as i'm sending normal text it's but as i provide some formatted text it's not..................

The code i'm giving below for sending mail.........


//For Sending The Mail
MailMessage mail1=new MailMessage();
mail1.To="mail@saamstesting.com";

//mail1.From="info@kiritbhaiji.com";
mail1.From="manoj.manojbisht@gmail.com";

mail1.Subject="Mail From Manoj Bisht";
mail1.Priority=MailPriority.High;

mail1.BodyFormat=MailFormat.Html;
string body=HtmlTextArea.Value;

mail1.Body=body.ToString();


try
{

SmtpMail.SmtpServer="127.0.0.1";
SmtpMail.Send(mail1);

lblMsg.Text="Mail Sent Successfully";
lblMsg.ForeColor=Color.DarkBlue;

}
catch(Exception ex)
{
lblMsg.Text=ex.Message.ToString();
lblMsg.ForeColor=Color.Red;
}





And the following error occuring
A potentially dangerous Request.Form value was detected from the client (HtmlTextArea="Manoj Bis...").








-- modified at 11:49 Tuesday 11th September, 2007

AnswerRe: Email in ASP.NET Pin
ToddHileHoffer11-Sep-07 5:19
ToddHileHoffer11-Sep-07 5:19 
QuestionNo parameterless constructor defined for this object. Pin
firestoper11-Sep-07 4:48
firestoper11-Sep-07 4:48 
AnswerRe: No parameterless constructor defined for this object. Pin
Pete O'Hanlon11-Sep-07 5:14
mvePete O'Hanlon11-Sep-07 5:14 
AnswerRe: No parameterless constructor defined for this object. Pin
ToddHileHoffer11-Sep-07 5:29
ToddHileHoffer11-Sep-07 5:29 
GeneralRe: No parameterless constructor defined for this object. [modified] Pin
firestoper11-Sep-07 6:18
firestoper11-Sep-07 6:18 
GeneralRe: No parameterless constructor defined for this object. Pin
StylezHouse11-Sep-07 7:43
StylezHouse11-Sep-07 7:43 
GeneralRe: No parameterless constructor defined for this object. Pin
firestoper11-Sep-07 14:35
firestoper11-Sep-07 14:35 
QuestionRegisterStartupScript Pin
Rev T11-Sep-07 3:52
Rev T11-Sep-07 3:52 
AnswerRe: RegisterStartupScript Pin
Sandeep Akhare11-Sep-07 3:57
Sandeep Akhare11-Sep-07 3:57 
QuestionHow to save file with some default name without prompting user Pin
here2learn11-Sep-07 2:44
here2learn11-Sep-07 2:44 
QuestionCookies and Session.Abandon() Pin
varshavmane11-Sep-07 2:40
varshavmane11-Sep-07 2:40 
AnswerRe: Cookies and Session.Abandon() Pin
Sandeep Akhare11-Sep-07 3:24
Sandeep Akhare11-Sep-07 3:24 
GeneralRe: Cookies and Session.Abandon() Pin
varshavmane11-Sep-07 3:35
varshavmane11-Sep-07 3:35 
AnswerRe: Cookies and Session.Abandon() Pin
Ahmad Adnan11-Sep-07 3:25
Ahmad Adnan11-Sep-07 3:25 
QuestionConfirmation box onload Pin
munklefish11-Sep-07 1:21
munklefish11-Sep-07 1:21 
AnswerRe: Confirmation box onload Pin
Sandeep Akhare11-Sep-07 1:51
Sandeep Akhare11-Sep-07 1:51 
GeneralRe: Confirmation box onload Pin
munklefish11-Sep-07 2:16
munklefish11-Sep-07 2:16 

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.