S
Steven
Hello,
I have 3 files --
1. mainform.aspx
2. mainform.aspx.cs
3. mouse.js
mainform.aspx contains a image button ("zoominimgbut") which will exceute C#
code, whenever the user clicks on it. mainform.aspx.cs is the code behind
for mainform.aspx. Mouse.js contains javascript code which needs to executed
ONLY when the user clicks on "zoominimgbut". But the problem is the
javascript code is executing all the time (meaning even if the user doesn't
click on the image button) . I added this line to the page load /
zoominimgbut on click events : ZoomInImgBut.Attributes.Add("onClick",
"mouse.js"); But its not working.
Any help would be greatly appreciated
Regards
Steven
I have 3 files --
1. mainform.aspx
2. mainform.aspx.cs
3. mouse.js
mainform.aspx contains a image button ("zoominimgbut") which will exceute C#
code, whenever the user clicks on it. mainform.aspx.cs is the code behind
for mainform.aspx. Mouse.js contains javascript code which needs to executed
ONLY when the user clicks on "zoominimgbut". But the problem is the
javascript code is executing all the time (meaning even if the user doesn't
click on the image button) . I added this line to the page load /
zoominimgbut on click events : ZoomInImgBut.Attributes.Add("onClick",
"mouse.js"); But its not working.
Any help would be greatly appreciated
Regards
Steven