Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. HTML Body mail with link button

HTML Body mail with link button

Scheduled Pinned Locked Moved C#
databasecsharphtmlhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Murugavel Sadagopan
    wrote on last edited by
    #1

    Hi All, In C#, How To Send A Hyperlink Using Query String Method. I have developing a web application of user enter enters the personal data. That information has sent to admin mail with approve/reject link button. When the Admin click the approve link, it has approve.aspx page with the user id as query string to update the db as approved. otherwise rejected. I can try the following code.

    mail.Subject = "New User";
    mail.Body = "<p>Dear Sir, <br><br> " + txtfname.Text + " " + txtlname.Text + ", has raised a requisition that needs your approval. <br><br><br> Please click to [<a href='http://localhost:1240/IMA/Approve.aspx?id="+tt+"'> Approve</a> ] [<a href='Reject.aspx'>Reject</a> ] the request. <br> <br> <br> <b>Note</b> : Please do not reply. This e-mail has been auto-generated.</p>";
    mail.IsBodyHtml = true;

    In the mail i have move the mouse over the approve link it shows http://.../approve.aspx?id=1, but click the appove link it shows <a href="http://.../id=1. I don't know why. Please help me out. Thanks in advance, Murugavel S

    N 1 Reply Last reply
    0
    • M Murugavel Sadagopan

      Hi All, In C#, How To Send A Hyperlink Using Query String Method. I have developing a web application of user enter enters the personal data. That information has sent to admin mail with approve/reject link button. When the Admin click the approve link, it has approve.aspx page with the user id as query string to update the db as approved. otherwise rejected. I can try the following code.

      mail.Subject = "New User";
      mail.Body = "<p>Dear Sir, <br><br> " + txtfname.Text + " " + txtlname.Text + ", has raised a requisition that needs your approval. <br><br><br> Please click to [<a href='http://localhost:1240/IMA/Approve.aspx?id="+tt+"'> Approve</a> ] [<a href='Reject.aspx'>Reject</a> ] the request. <br> <br> <br> <b>Note</b> : Please do not reply. This e-mail has been auto-generated.</p>";
      mail.IsBodyHtml = true;

      In the mail i have move the mouse over the approve link it shows http://.../approve.aspx?id=1, but click the appove link it shows <a href="http://.../id=1. I don't know why. Please help me out. Thanks in advance, Murugavel S

      N Offline
      N Offline
      n podbielski
      wrote on last edited by
      #2

      Check the source of mail message to see if link renders correctly.

      No more Mister Nice Guy... >: |

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups