|
Ensure that server-side debugging is disabled in production sites
|
Total Hit (5153) |
Before going to production, you should ensure that the server-side script debugging is off for your ASP application. In fact, not only does server-side debugging slow down your application, it also forces all ASP request to be served by the same thread. In other words, you don't take advantage of II
....Read More |
Rating
|
|
|
Avoid OnEndPage in ASP components under IIS 5
|
Total Hit (5098) |
As explained elsewhere in this knowledge base, you are suggested not to rely on the OnStartPage method to get a reference to the main ASP objects, if your component is to be run under IIS 5. However, if you do run such a component under IIS 5, at least you should ensure that it doesn't expose the On
....Read More |
Rating
|
|
|
Create a GUID from ASP using SQL Server
|
Total Hit (5948) |
At times you may need to create a GUID from ASP, for example when assigning unique IDs to users that are visiting your site for the first time. While you can generate new GUIDs from VB quite easily with a call to the CoCreateGUID API call (as explained elsewhere in the Tip Bank, see below), you can'
....Read More |
Rating
|
|
|
Split large HTML tables in smaller ones
|
Total Hit (2844) |
In general, a browser can't render an HTML table before the closing &/TABLE> tag is received. This means that the end user might wait for several seconds before a table result is displayed. The easiest way to have results appear as soon as they are available is subdivide a large HTML table into many
....Read More |
Rating
|
|
|
Use Response.IsClientConnected after long queries
|
Total Hit (2930) |
When you perform a complex and time-consuming query in your ASP program, you should periodically test whether the client is still connected, using the IsClientConnected method of the Response object, as in :
«Code LangId=5»
' a lenghty query here
' ...
' check whether the client is connected be
....Read More |
Rating
|
|
|
|
Buffering is on by default in IIS 5
|
Total Hit (5213) |
You can speed up ASP by adding the following statement at the beginning of an ASP page:
Response.Buffer = True
This statement must be executed before any HTML text is sent to the client. When buffering is on, ASP sends data to the client browser only when the page has been processed, or when
....Read More |
Rating
|
|
|
Two ways to access ASP objects from within a component
|
Total Hit (8685) |
You can write ASP components that work under any version of IIS by adding a special public method, named OnStartPage, to the public class module of the ActiveX DLL project. This method is then called by IIS whenever a script instantiates an object through the Server.CreateObject command. This is the
....Read More |
Rating
|
|
|
|
|
File downloading with COM and ASP
|
Total Hit (3130) |
This article is about direct file downloading through a COM component. It uses the IResponse interface to send a file directly to the client browser.
With this approach you can protect your files from being downloaded by an unauthorized person.
|
Rating
|
|