Solved

asp.net syntax send hyperlink in email

Posted on 2010-09-08
4
341 Views
Last Modified: 2012-05-10
message.Body = "New Email " + "<A href=""http://www.mail.com/test.apsx?Name="" + textbox1.textl>Click Me</A>"

I'm sending an email with net.mail.  what is the correct syntax for passing the querystring?
0
Comment
Question by:bergertime
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
Ashok_Paulose earned 500 total points
ID: 33630854
message.Body = "New Email " + "<A href='http://www.mail.com/test.apsx?Name=" + textbox1.text & "'>Click Me</A>"
0
 
LVL 2

Expert Comment

by:junimation
ID: 33631240
make sure that you are using this property as well.
message.IsBodyHtml = true;

and then

message.Body = "New Email " + "Click Me";
0
 
LVL 2

Expert Comment

by:junimation
ID: 33631254
sorry here is the correct way

make sure that you are using this property as well.
message.IsBodyHtml = true;

and then
message.Body = "New Email " + "<A href=\"http://www.mail.com/test.apsx?Name=\"" + "whatever text" + "\">Click Me</A>";

Open in new window

0
 
LVL 2

Author Closing Comment

by:bergertime
ID: 33631391
Ashok, I must confess your code didn't look right.  I didn't think the textbox1 would get picked up inside the single quotes.  Anyways thanks.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now