Here’s and example:
VB.NET
Dim value As String = 'pic1.jpg'
Button1.Attributes('onMouseOver') = 'alert( ’' + value + '’);'
C#
string value = 'pic1.jpg';
Button1.Attributes['onMouseOver'] = 'alert( \'' + value + '\');' ;
Here’s and example:
VB.NET
Dim value As String = 'pic1.jpg'
Button1.Attributes('onMouseOver') = 'alert( ’' + value + '’);'
C#
string value = 'pic1.jpg';
Button1.Attributes['onMouseOver'] = 'alert( \'' + value + '\');' ;
Share with