Optimising a web page

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top