-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes While Calling from C# Codebehind #128
Comments
venndiagramfigures.zip ClientScript.RegisterStartupScript(this.GetType(), "AKey", "setVennValues();", true); It now calls the JavaScript code from the Code Behind, as opposed to the Client Side (which is much easier to manage when the application performs a PostBack). Thanks again benfred and other collaborators, for this amazing contribution. I believe that it's the most programmer-friendly Venn Diagram generator that I've found, and successfully implemented with relative ease. |
When I attempt to call the chart in C# CodeBehind, the JavaScript in d3.min crashes, due to the chart being set to NULL. When I attempt to use the onload() event, it fires perfectly, but this does not allow me to place in my calculated values to create my diagram. The only thing that I changed was in the venndiagramfigures.js, which is where I set the values for the set (I added a function called setVennValues, which takes in values for the Venn Diagram). I am calling the function in the Codebehind with the following code:
ScriptManager.RegisterStartupScript(this, GetType(), "venndiagramfigures.js", "setVennValues(); ", true);
Thank you for this great project!
The text was updated successfully, but these errors were encountered: