Sign in to follow this  
lallouna85

Help Me Pls so Urgent

Recommended Posts

hello everyone , I am using fusion charts but my problem is I want to load the fusion chart onclick of a button using ASP.net.

I tried to put render of the codebehind function and send it from the code behind to the client side, and put the division.innerHTML  =  value of the render.

but its not accepting it because div doesnot accept "<script></script>".

The demo of the fusion chart that I have found , they have put the function from the code behind inside a div or td.

i.e. <td> <%= getFiscalPerAmount() %></td>

or

<div id='xyz' runat='server'> <%= getFiscalPerAmount() %>  </div>

all those are on load.

but I want to know how onclick.

Share this post


Link to post
Share on other sites

hi,

what you can is create a <asp:literal id="xyz" runat="server"/> control in  your page.

Also create a button to run  a code from the code behind. In that code instead of response.write you can use:

xyz.text=InfoSoftGlobal.FusionCharts.RenderChart(....);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this