Wednesday, 13 January 2016

Javascript - How to open default mail client using ScriptManager


Watch this example on YouTube:


the following code will open default mail client on local computer and will prepare email to
somename@somename.com

ScriptManager.RegisterStartupScript(Me.Page, Me.Page.[GetType](), "some status",
                        "javascript:window.location.href = 'mailto:somename@somename.com';", True)

No comments:

Post a Comment