Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

asp.net syntax send hyperlink in email

Posted on 2010-09-08
4
Medium Priority
?
394 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Integration Management Part 2
Suggested Courses

916 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