rao Posted April 29, 2008 Report Share Posted April 29, 2008 I am using master page and user control how to call the ajax program in side the user control? Link to comment Share on other sites More sharing options...
Frank Posted April 29, 2008 Report Share Posted April 29, 2008 Sorry. Your question is too vague. Please provide more details. Link to comment Share on other sites More sharing options...
rao Posted April 29, 2008 Author Report Share Posted April 29, 2008 Dear All, On click of pie chart slice page should not refresh. i wrote the click event , while clicking the pie chart slice whole page refreshing. My requirement page will not refresh when clicking the pie chart slice. Link to comment Share on other sites More sharing options...
Frank Posted April 29, 2008 Report Share Posted April 29, 2008 Set: chart.UseCallbackForEvents = true; Link to comment Share on other sites More sharing options...
rao Posted April 30, 2008 Author Report Share Posted April 30, 2008 protected void Chart1_Click(object sender, HitTestEventArgs e) { if (e.HitType == HitType.Point) { lblData.Text = Chart1.Data[e.Series, e.Point].ToString(); } } data is not displaying in the lblData.text. i have set chart.UseCallbackForEvents = true; Link to comment Share on other sites More sharing options...
Frank Posted April 30, 2008 Report Share Posted April 30, 2008 Wait a minute. You said: "My requirement page will not refresh when clicking the pie chart slice." If you set UseCallbackForEvents = true, only the chart will be refreshed. If you want to refresh another control you will have to either use some AJAX framework or do it on your own. Chart FX is capable of making AJAX calls to itself but it is not an AJAX framework. You may want to try using a ASP.NET AJAX UpdatePannel in which both the chart and the label are included. In this situation, you will not use UseCallbackForEvents but instead you will leave the AJAX functionality for the update panel to do. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.