Click here to Skip to main content
16,005,121 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How can I check browser supporting Javascript Pin
John-ph11-Sep-07 22:26
John-ph11-Sep-07 22:26 
AnswerRe: How can I check browser supporting Javascript Pin
John-ph11-Sep-07 22:44
John-ph11-Sep-07 22:44 
QuestionPlease I need Materials and Idea on how to design an alert system Pin
cheifo11-Sep-07 21:47
cheifo11-Sep-07 21:47 
AnswerRe: Please I need Materials and Idea on how to design an alert system Pin
Sandeep Akhare11-Sep-07 21:52
Sandeep Akhare11-Sep-07 21:52 
AnswerRe: Please I need Materials and Idea on how to design an alert system Pin
John-ph11-Sep-07 22:56
John-ph11-Sep-07 22:56 
QuestionTurn off the Event Validation in ASP.NET with C# Pin
.NET- India 11-Sep-07 21:21
.NET- India 11-Sep-07 21:21 
AnswerRe: Turn off the Event Validation in ASP.NET with C# Pin
Sandeep Akhare11-Sep-07 21:32
Sandeep Akhare11-Sep-07 21:32 
GeneralRe: Turn off the Event Validation in ASP.NET with C# Pin
.NET- India 11-Sep-07 21:42
.NET- India 11-Sep-07 21:42 
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...").


GeneralRe: Turn off the Event Validation in ASP.NET with C# Pin
Sandeep Akhare11-Sep-07 21:47
Sandeep Akhare11-Sep-07 21:47 
GeneralRe: Turn off the Event Validation in ASP.NET with C# Pin
.NET- India 11-Sep-07 22:20
.NET- India 11-Sep-07 22:20 
GeneralRe: Turn off the Event Validation in ASP.NET with C# Pin
Sandeep Akhare11-Sep-07 22:38
Sandeep Akhare11-Sep-07 22:38 
GeneralRe: Turn off the Event Validation in ASP.NET with C# Pin
.NET- India 11-Sep-07 22:43
.NET- India 11-Sep-07 22:43 
GeneralRe: Turn off the Event Validation in ASP.NET with C# Pin
Sandeep Akhare11-Sep-07 22:48
Sandeep Akhare11-Sep-07 22:48 
GeneralRe: Turn off the Event Validation in ASP.NET with C# Pin
.NET- India 11-Sep-07 23:02
.NET- India 11-Sep-07 23:02 
QuestionCould not load type 'INVT.WEB.frmIndex' [modified] Pin
R.Palanivel11-Sep-07 21:12
R.Palanivel11-Sep-07 21:12 
QuestionDLL Pin
pavanteja11-Sep-07 20:46
pavanteja11-Sep-07 20:46 
AnswerRe: DLL Pin
WillemM11-Sep-07 21:10
WillemM11-Sep-07 21:10 
GeneralRe: DLL Pin
pavanteja11-Sep-07 21:25
pavanteja11-Sep-07 21:25 
GeneralRe: DLL Pin
Sandeep Akhare11-Sep-07 21:34
Sandeep Akhare11-Sep-07 21:34 
GeneralRe: DLL Pin
pavanteja12-Sep-07 1:27
pavanteja12-Sep-07 1:27 
QuestionAttaching files using mailto function Pin
manowj11-Sep-07 20:21
manowj11-Sep-07 20:21 
AnswerRe: Attaching files using mailto function Pin
WillemM11-Sep-07 21:09
WillemM11-Sep-07 21:09 
GeneralRe: Attaching files using mailto function [modified] Pin
manowj11-Sep-07 21:30
manowj11-Sep-07 21:30 
AnswerRe: Attaching files using mailto function Pin
Paras Kaneriya12-Sep-07 23:21
Paras Kaneriya12-Sep-07 23:21 
Questionedit and update .resx file Pin
PrakashBhaskar11-Sep-07 19:51
PrakashBhaskar11-Sep-07 19:51 

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.