[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

embedding html<a href> tag in c# code

Posted on 2011-04-29
3
Medium Priority
?
536 Views
Last Modified: 2012-06-27
in the following code i am getting error <a href .....

Can any one tell m how that ?

catch (System.Exception Ex)
            {
                fromAddress = new System.Net.Mail.MailAddress("<a href="+ "mailto:donotreply@liquidhub.com"+"/>" + "donotreply@liquidhub.com</a>");
            }
0
Comment
Question by:LathaLiquidHub
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 750 total points
ID: 35490467
try

   fromAddress = new System.Net.Mail.MailAddress(@"<a href="+ "mailto:donotreply@liquidhub.com"+"/>" + "donotreply@liquidhub.com</a>");
0
 

Author Comment

by:LathaLiquidHub
ID: 35490558
Thank you
0
 

Author Closing Comment

by:LathaLiquidHub
ID: 35900909
thanks
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question