Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...