Click here to Skip to main content
15,892,804 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Please help me, how to pass the value of fusionchart(when clicking on it) to a c# function.
HTML
<chart>
<set label='Sample1' name='Sample1' value='1' tooltext='Sample1,1' link='JavaScript:MyFunc(%26quot; ABC %26quot;);' />
<set label='Sample2' name='Sample2' value='2' tooltext='Sample2,1'  link='JavaScript:MyFunc(%26quot; xyz %26quot;);' />
</chart>

I am calling Js on clicking on chart.
JavaScript
function MyFunc(var1) {
            var modal = $find("newtest");
            $("#dialog").empty();
            $("#dialog").append("<iframe frameborder='0' sandbox='allow-top-navigation' target='_Parent' seamless='seamless' width='100%' height='100%' src='WebForm2.aspx'></iframe>");
            modal.show();
        }

Here I am getting values on-clicking the chart. But the problem is with IFrame.

I am calling the page 'WebForm2.aspx' using IFrame, and I have added GridView in that page. Codebehind is working on page load, but not working on postback.
So I am searching for any other option to do postback to 'webform2.aspx'

Thanks in advance
Posted
Updated 3-Feb-14 0:50am
v3
Comments
ravikhoda 3-Feb-14 6:39am    
please add some code ...what did you do to achieve this ?
srmohanr 3-Feb-14 6:50am    
Hope I make my question in a clear way

1 solution

Hi,

It works when I removed sandbox attribute in it.
JavaScript
<iframe frameborder='0' width='100%' height='100%' src='WebForm2.aspx'></iframe>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900