I'm trying to call some function from my code behind in C#. I was searching how to do this and was able to call an alert to display when I wanted it to. However, I don't know how to call other things!
This is what I need to call from the code behind:
var paper = Raphael("paper1", 800, 800);
var Plan = paper.path("M100, 100 a 50, 50 0 0,1 50, 50 l -50 0 l 0, -50");
Plan.attr({ fill: "#FF6600" });
I've tried these on a plain HTML file but I'm not able to use it. I'm also using a master page and most of the examples I've found have been without master pages so I'm pretty lost on this.
Anyone can help?
alert()
call to work then? You can't really "call" anything on the browser, you can only output a<script>
block as part of your page that the browser will process. Once your page is done displaying, you can't do that anymore. (AJAX notwithstanding.) – millimoose May 23 '12 at 13:43alert()
, then trying to fix any errors that come up? – millimoose May 23 '12 at 14:21