473,769 Members | 7,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Optimising a web page

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.Ena bled = false;
this.Guest2.Ena bled = false;
this.Guest3.Ena bled = false;
this.Guest4.Ena bled = false;
this.Guest5.Ena bled = false;
this.Guest6.Ena bled = false;

or

this.Guest1.Vis ible = false;
this.Guest2.Ena bled = false;
this.Guest3.Ena bled = false;
this.Guest4.Ena bled = false;
this.Guest5.Ena bled = false;
this.Guest6.Ena bled = 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.

Mar 7 '06 #1
1 1029
DWS
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
"BobLaughla nd" wrote:
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.Ena bled = false;
this.Guest2.Ena bled = false;
this.Guest3.Ena bled = false;
this.Guest4.Ena bled = false;
this.Guest5.Ena bled = false;
this.Guest6.Ena bled = false;

or

this.Guest1.Vis ible = false;
this.Guest2.Ena bled = false;
this.Guest3.Ena bled = false;
this.Guest4.Ena bled = false;
this.Guest5.Ena bled = false;
this.Guest6.Ena bled = 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.

Mar 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2100
by: Jasper Bryant-Greene | last post by:
I have a database of movie titles, with about 78,000 records, and a database of related people (directors, writers, actors/actresses etc.) with about 141,000 records. I display a random movie out of this database on each hit to my website's homepage. This worked fine when I had only a couple thousand movies, but now that the DB has grown, it seems to be taking a bit longer to process the page. My DB schema for each table:
1
3837
by: Howie Goodell | last post by:
Hello -- I am trying to optimise a JDBC connection and an Oracle 9i database for reading millions of records at a time to a 1 Gig PC running Win2K or XP. Two questions: 1. Does anyone have suggestions for optimising an Oracle 9i server (Enterprise Edition, Release 2) for networked read-only JDBC access with large return sets? With default settings MySQL reads 1M records 2.5 times faster than Oracle even on its first, non-cached...
3
1506
by: Andrew | last post by:
Hi, I have a problem I would really appreciate help with. I am generating dynamic SQL and need to optimise it. The specific example I am trying to optimise looks like this: SELECT DISTINCT DataHeaderID FROM TB_DataDetailText T1 WHERE (EntityFieldID IN ( 31) AND (Data LIKE '12BORE%' )) AND (DataHeaderID=(SELECT DISTINCT DataHeaderID FROM TB_DataDetailText CT2 WHERE T1.DataHeaderID = CT2.DataHeaderID AND (EntityFieldID IN ( 34) AND...
4
3538
by: Paul Brown | last post by:
Thanks for the replies Tristan, Eric, Steven & Kurt. They have given me some good leads. I present justification for a lot of the comments that drew (constructive) criticism below. Firstly, let me summarise the feedback that has pointed me in the right direction :- >> Steven > 20.13: What's the best way of making my program efficient? > A: By picking good algorithms and implementing them carefully.
2
3629
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
7
1242
by: Chris Podmore | last post by:
This is probably a stupid question but here goes anyway. What's the best way to design web pages that work in 640x480 or 800x600 and above? The pages I have created look fine in 800x600 or above but my boss has just been to a site that runs their desktops at 640x480 and has come back with a load of comments about how rubbish it all looks. It was all great until he went to this site and now it's all "we need to do something about".
5
1455
by: Chris Weston | last post by:
Hi. Maybe I'm just being dim, but I'm struggling to get my head around optimising a query with regard to indexes. If I make a select query, such as a pseudo-example 'select * from bigtable where foo='bar' and (barney>rubble and fred<flintoff)', and the table is indexed on 'foo', how could I make that any better? What indexes could I add, or what could I change in the query? I know it looks simple, but so am I.
2
1801
by: Eckhart | last post by:
Dear All, Plz help me in optimising the following query, Reduce repeatable reads from the table via select ,ythe table sare not having referntial integrity constarints ,relations CREATE proc Rolex136Sync as DECLARE @date varchar(50),@ydate varchar(50) print CONVERT(char(11),(GETDATE()-1),100) SET @date =...
7
1374
by: Martin Eyles | last post by:
I have an ASP page that makes a vml/svg graph out of data. In order to extract all the necessary data I have to perform 68 SQL queries, which is unfortunatley a bit slow at the moment. For each of the procedures I go through code of this form Dim conn As New SqlClient.SqlConnection("Data Source=" & ServerName & "; User ID=***; Password=***") conn.Open() SQL = "" 'in operation has code to dynamically construct one of the
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.