﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Lounge - how to avoid to reload the controls in any postback</title><link>http://www.intersoftsolutions.com/Community/Lounge/how-to-avoid-to-reload-the-controls-in-any-postback/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>how to avoid to reload the controls in any postback</title><link>http://www.intersoftsolutions.com/Community/Lounge/how-to-avoid-to-reload-the-controls-in-any-postback/</link><pubDate>Fri, 06 Nov 2009 03:15:38 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Sorry for the late reply. May i know what button you used? Does it trigger FullPostBack?&lt;/p&gt;&lt;p&gt;Normally, we bind data into WebGrid and WebCombo inside IntializeDataSource event, not Page_Load. If your Button do FullPostback, of of course InitializeDataSource and Page_Load event would be called again. &lt;br /&gt;That's happen also for FlyPostBack condition (InitializeDataSource event).&lt;br /&gt;e.g for refresh.&lt;/p&gt;
&lt;p&gt;May i know why do you need them to be called once?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>how to avoid to reload the controls in any postback</title><link>http://www.intersoftsolutions.com/Community/Lounge/how-to-avoid-to-reload-the-controls-in-any-postback/</link><pubDate>Mon, 02 Nov 2009 09:39:32 GMT</pubDate><dc:creator>jleyva@bisa.com.pe</dc:creator><description>&lt;p&gt;we have a big problem with the perfomance of our system and we have a risk in our project, i appreciate your help.&lt;/p&gt;
&lt;p&gt;I want to explain how use to work before use the webcontrols.&lt;/p&gt;
&lt;p&gt;for the dropdownlist and the gridwiew we have the normal methods in the form_load like this&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Protected&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; Page_Load(&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;ByVal&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; sender &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Object&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;, &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;ByVal&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; e &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; System.EventArgs) &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Handles&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Me&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;.Load&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Not&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; IsPostBack &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Then&lt;/span&gt;&lt;/span&gt;

&lt;p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;  loadsupplier()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;  loadinvoices()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;If
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Sub
&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;so we load the dropdownlist and the gridviews only once in the page (when the page is load) and when ocurred other event the methods loadsupplier() and loadinvoices() are not reload.&lt;/p&gt;
&lt;p&gt;I hope you have been understand the context above if you have any question let me know&lt;/p&gt;
&lt;p&gt;But now using the webcontrols in the case of webgrid or webcombo we choose the datasource: isdatasource or objectdatasource and those controls get associate with a method that return the information.&lt;/p&gt;
&lt;p&gt;The focus of the our problem is that we need to configurate the webcombos and webgrid only load once when the page load and then when we use a button event not reload the webcombos neither webgrids.&lt;/p&gt;
&lt;p&gt;I hope you can understand our problem if you have any question please let me know, is really critical resolve this perfomance problem because in each button event all webcombos an webgrids are reolad and is so slow. i hope your soon answer.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>how to avoid to reload the controls in any postback</title><link>http://www.intersoftsolutions.com/Community/Lounge/how-to-avoid-to-reload-the-controls-in-any-postback/</link><pubDate>Thu, 29 Oct 2009 05:40:50 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Some of our events would be called again e.g IntializeDataSource (WebGrid) or PrepareDataBinding (WebGrid). But You can also use 'If Not ISPostBack' to avoid some code inside those event to be called again. I think there no much different with the code you used on aspnet. You only need to customize so it can work as you expect.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>how to avoid to reload the controls in any postback</title><link>http://www.intersoftsolutions.com/Community/Lounge/how-to-avoid-to-reload-the-controls-in-any-postback/</link><pubDate>Wed, 28 Oct 2009 16:41:44 GMT</pubDate><dc:creator>jleyva@bisa.com.pe</dc:creator><description>&lt;p&gt;because all controls Intersoft are recharged when triggers a postback on the page?&lt;/p&gt;
&lt;p&gt;with contrlo's aspnet used&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If Not IsPostBack Then&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; 'load the control's. is loaded only once, but every time with&lt;/strong&gt;&lt;strong&gt; intersoft&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; End If&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;but with intersoft ¿?, There is some property that controls this&lt;/p&gt;</description></item></channel></rss>