• MailTo hyperlink in a datagrid (.NET framework 1.1)

    Home » Forums » Developers, developers, developers » DevOps Lounge » MailTo hyperlink in a datagrid (.NET framework 1.1)

    Author
    Topic
    #402839

    I have a datagrid with contact information including email address. Does anyone know if there is a way to convert the email address to a Mailto: hyperlink so that when you click on it, it creates a message form with the addressee filled in?

    Viewing 1 reply thread
    Author
    Replies
    • #804941

      There are several ways to approach this. Both involve using a Template column instead of a Bound column.

      1) Create a Template Column for the desired item
      2) Create the tags for the content
      3)
      a) Add an item, using as the NavigateURL and Text attributes OR
      Manually create the hyperlink field like such:

      (Note: You have to use Single quotes around any item that has double quotes within it – such as the href=” attribute above)

      Either of these techniques for #3 will work pretty well… Don’t forget that you can also add “?subject=A Subject” after the Email address to populate the Subject line as well…

      Hope this helps!

      • #808228

        MarkJ, Thank you! I’ve looked everywhere on-line and in the Help files and couldn’t come up with this!
        Thanks to you, the application is sailing along again! sailing

      • #808229

        MarkJ, Thank you! I’ve looked everywhere on-line and in the Help files and couldn’t come up with this!
        Thanks to you, the application is sailing along again! sailing

    • #804942

      There are several ways to approach this. Both involve using a Template column instead of a Bound column.

      1) Create a Template Column for the desired item
      2) Create the tags for the content
      3)
      a) Add an item, using as the NavigateURL and Text attributes OR
      Manually create the hyperlink field like such:

      (Note: You have to use Single quotes around any item that has double quotes within it – such as the href=” attribute above)

      Either of these techniques for #3 will work pretty well… Don’t forget that you can also add “?subject=A Subject” after the Email address to populate the Subject line as well…

      Hope this helps!

    Viewing 1 reply thread
    Reply To: MailTo hyperlink in a datagrid (.NET framework 1.1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: