Button javascript variable

Answered
0
0

I sit possible to have variables from VB.NET inside the javascript “execute” event?

For example:

location.href=“mailto:userEmail?subject=theSubject&body=theBody”

This way, when the user clicks the button, the javascript gets called and the variables we created inside our vb.net project is used?

  • You must to post comments
Best Answer
0
0

 

You can register a client side event in Wisej using either the designer (ClientEvents) or by code wither by adding a ClientEvent object or using https://wisej.com/docs/2.1/html/M_Wisej_Web_Control_AddClientEventListener.htm.

When you build the script you can change the values.

But you can also do this in a normal VB.NET click handler using:

Application.Navigate(“mailto:….”);

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.