I created one button field in Gridview in asp.net 3.5. I wish to send mails using the button bound with ("mailid"). How can i write the code for button?
Hi pbla and tlhintoq,
You could use a hyperlink and bind the email address to it so that clicking the link will open your desktop's default mail software. You can easily mailto:format gridview hyperlink to send email.
Hope this helps. Please feel free to ask if the problem persists or if any futher help is required. Thanks. Happy Programming!
If the HTML mailto doesn't work for you and you'd like to send an email using your .NET code it's the same for web applications as it is for desktop applications...
Comment