using SVG...

vrikers

Newcomer
Joined
Dec 5, 2005
Messages
1
i need a SVG GUI in my aspx page. if i click, let's say, a square - something should happen. the problem is that svg only supports javascript. is there a way to assign asp.net script handlers to click events on svg objects?
or is it possible to call asp.net scripts from javascripts?
 
All the asp.net code is called by using the PostBack javascript function that is rendered into every page. Events are raised by a control that has had it's state changed on the client computer - this is detected through view state. All you have to do is change the value of a control on the page that is a server control (rather than an HMTL control - an example would be a <asp:Label> rather than simply a <span> tag.) Then manually call the post back method from you're script.
 
Back
Top