asp.net mschart control load everytime when page loads

Posted by RohiK under C# on 3/7/2011 | Points: 10 | Views : 3036 | Status : [Member] | Replies : 4
Hi all,

I have page with 2-3 update panels.

left update panel content gets refereshed only when the trigerred click .[the button clicked in popoup].
in right update panel I put MS-chart control. I don't wat that to upload each time when page any other event called.
but Even how that chart gets loaded every time when I called any event like button clicked or something.
why this is so?

I dont want to load that chart everytime.


please ans me it's urgent

Happy Programming!!
Rohi



Responses

Posted by: Gsolvers on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
TRY THIS

If Page.IsPostBack Then
mschart.repaint=true
Else
mschart.repaint=false
End If

Best Regards,

VG
www.TeacherJi.com

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RohiK on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down

I haven't found 'repaint' to set true/false

Happy Programming!!
Rohi

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/7/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

check for the ispost back prop and see that the page is loading or not, then you call the function where u binding the chart control...

Thanks
Karthik
www.f5Debug.net

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/7/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Make sure you have placed the binding chart control method inside if(!IsPostBack) ...

Thanks and Regards
Madhu

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response