Optimising a web page

  • Thread starter Thread starter BobLaughland
  • Start date Start date
B

BobLaughland

Hi All,

I have a web page that loads data out of a database, and then displays
it on the screen.

There is a lot of logic behind the displaying, some times fields are
made invisible, and sometimes they are hidden.

The page is slow to load, but I must admit that the database query to
load the page is only small, and will only bring back one row, so I am
not sure the database query is a problem.

I was wondering if you do sometime like this,

this.Guest1.Enabled = false;
this.Guest2.Enabled = false;
this.Guest3.Enabled = false;
this.Guest4.Enabled = false;
this.Guest5.Enabled = false;
this.Guest6.Enabled = false;

or

this.Guest1.Visible = false;
this.Guest2.Enabled = false;
this.Guest3.Enabled = false;
this.Guest4.Enabled = false;
this.Guest5.Enabled = false;
this.Guest6.Enabled = false;

whether the web page tries to update itself every time you change the
enabled or visible status of a control. If so can you turn off the
updating until all the logic is done and then make it redraw only once?

Thanks,

Peter.
 
Bob,
No the web page doesn't update everytime you change a visible or enabled
property and will render to the client only once.

Good Luck
DWS
 
Back
Top