|
IIS Resource Kit
|
Total Hit (2280) |
<b>Internet Information Services (IIS) 6.0 Resource Kit Tools</b>
The IIS 6.0 Resource Kit Tools can help you administer, secure, and manage IIS
<a href='http://www.microsoft.com/downloads/details.aspx?familyid=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en'>http://www.microsoft.com/downl
....Read More |
Rating
|
|
|
|
Avoid OnEndPage in ASP components under IIS 5
|
Total Hit (5099) |
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
|
|
|
Avoid querying the ServerVariables collection
|
Total Hit (5520) |
You can access a lot of useful information through the ServerVariables collection, but this has a price in terms of performance. More precisely, the first time you reference this collection in a page, IIS must collect all the data that is necessary to create the collection. All the subsequent refere
....Read More |
Rating
|
|
|
Beware of the Dictionary object in ASP pages
|
Total Hit (5177) |
The Scripting.Dictionary object is marked as having a "Both" threading model, which means that you can freely assign it to a Session or an Application variable. However, the actual threading model for this object is "Apartment", which means that you should use it only at the page scope level. You ca
....Read More |
Rating
|
|
|
Buffering is on by default in IIS 5
|
Total Hit (5215) |
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
|
|
|
Cache frequently used read-only data in Application variables
|
Total Hit (5043) |
Unlike Session variables, there is only one instance of each Application variable. This means that storing data in an Application variable - including memory-consuming data such as long strings or arrays - doesn't severily impact on system performance (unless you store strings with thousands and tho
....Read More |
Rating
|
|
|
Cache frequently used read-only data in Application variables
|
Total Hit (5416) |
Unlike Session variables, there is only one instance of each Application variable. This means that storing data in an Application variable - including memory-consuming data such as long strings or arrays - doesn't severily impact on system performance (unless you store strings with thousands and tho
....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
|
|
|
Don't mix script languages on the same page
|
Total Hit (5329) |
You should never use more than one script language on the same ASP page, for example by mixing pieces of VBScript with portions of JavaScript. The reason is that there is a limit to the number of script engines that ASP can cache.
When IIS processes an ASP file, it parses the script code and cac
....Read More |
Rating
|
|
|
Don't use implicit connections when opening a Recordset
|
Total Hit (5175) |
As most ADO developers know well, there are basically two distinct syntax for opening a Connection and then a Recordset: you can explicitly create and open a Connection object, and then pass it to the 2nd argument of the Recordset's Open method (or assign to the Recordset's ActiveConnection property
....Read More |
Rating
|
|
|
Ensure that server-side debugging is disabled in production sites
|
Total Hit (5087) |
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
|
|
|
Large or nested include files can affect ASP performance
|
Total Hit (5411) |
All include files appear to the ASP processor as belonging to the main ASP file, therefore they are read in memory and parsed as if they were physically pasted into the main ASP file. Therefore, while you should use include files for holding commonly used routines, you should be aware that the longe
....Read More |
Rating
|
|
|
Let ASP determine whether cookies are enabled
|
Total Hit (3035) |
Most web sites heavily rely on client-side cookies. For example, ASP Sessions can work correctly only if the browser allows temporary cookies (that are not stored on disk). ASP doesn't provide any native method to understand whether cookies are enabled or not, but you can use the following code:
....Read More |
Rating
|
|
|
Miscellaneous tips for improving ASP performance and robustness
|
Total Hit (5923) |
Here's a collection of quick-and-dirty tips for improve the performance and the robustness of your ASP applications:
Use the Option Explicit directive to ensure that all variables are correctly declared and scoped. Mistyping a variable name is one of the most frequent causes of bugs inside ASP
....Read More |
Rating
|
|
|
|
How to prevent page caching in ASP.net
|
Total Hit (2746) |
Web page caching is done by your browser in order to improve the performance of webpages but sometimes its required to load fresh copy of page everytime you hit the URL even using back button of your browser. In ASP.net this can be done by the following code.
«code LangId=2»Private Sub Page_Load(
....Read More |
Rating
|
|
|
|
Deploying ASP.NET Applications - Part 1
|
Total Hit (703) |
Before looking at the different steps involved in setting up and deploying an ASP.NET Web application, it is important to understand the difference between Setup and Deployment. Setup is an application or process that allows you to package up your application into an easy-to-deploy format, which can
....Read More |
Rating
|
|
|
Implementing Search in ASP.NET with Google Custom Search (CSE)
|
Total Hit (1828) |
ASP.NET's site map feature and SiteMapPath, TreeView, and Menu controls help visitors navigate your site and find the information they are looking for. However, ASP.NET does not provide any built-in functionality for search, which is the most common way people find information online. This is unfort
....Read More |
Rating
|
|
|
Bulk Edit GridView (ASP.net 2.0)
|
Total Hit (980) |
GridView is a tremendously useful control in ASP.NET 2.0. Despite being much improved from the DataGrid of the ASP.NET 1.x era, GridView still lacks some features which always seem to be requested. This is a multipart post on how to customize GridView to add some of this missing functionality. I'
....Read More |
Rating
|
|
|
|
Integrating PayPal into E-Commerce Applications with ASP.NET
|
Total Hit (730) |
E-commerce applications require user-friendly mechanisms for payment. Although e-commerce sites usually use full credit card processing gateways, offering PayPal for payment provides an option for those who don't want to send credit card information across the Internet.
....Read More |
Rating
|
|
|
|
Top Questions about the DataGrid Web Server Control
|
Total Hit (1327) |
Windows Forms versus Web Forms DataGrid Controls
Controlling Column Width, Height, and Alignment
Customizing Column Layout in Display and Edit Mode
Formatting Dates, Currency, and Other Data
Showing and Hiding Columns Dynamically
Adding Columns Dynamically
Adding New Records to a Data Source U
....Read More |
Rating
|
|
|
Yahoo Data Centre IP Address List
|
Total Hit (973) |
Information On Yahoo Search Ip address and Yahoo's new Spider Yahoo Slurp:
http://help.yahoo.com/help/us/ysearch/slurp/
Yahoo! Slurp is Yahoo!'s web-indexing robot. Yahoo slurp indexes the web following HREF links,
|
Rating
|
|
|
Forensic Log Parsing with Microsoft's LogParser
|
Total Hit (894) |
Investigating a web-based intrusion can be a daunting task, especially when you have no information other than knowing it was web-based. It is easy to waste precious time digging through megabytes, perhaps even gigabytes, of log files trying to locate suspicious activity. Often this search turns up
....Read More |
Rating
|
|
|
URL Rewriting in ASP.NET
|
Total Hit (1014) |
Examines how to perform dynamic URL rewriting with Microsoft ASP.NET. URL rewriting is the process of intercepting an incoming Web request and automatically redirecting it to a different URL. Discusses the various techniques for implementing URL rewriting, and examines real-world scenarios of URL re
....Read More |
Rating
|
|
|
Editable ComboBox control in ASP.net
|
Total Hit (989) |
I've always wondered why Microsoft, or any else for that matter, has never provided a native HTML ComboBox element. After some poking around on the web, I decided to take matters into my own hands. I wanted a control that would be visually distinctive from the default HTML Select element and provide
....Read More |
Rating
|
|
|
Uploading Files in ASP.NET 2.0
|
Total Hit (1017) |
Learn how to use the new FileUpload server control in Microsoft ASP.NET 2.0. (15 printed pages)
An Example of the FileUpload Server Control
Working Around File Size Limitations
Client-Side Validation of File Types Permissible to Upload
Adding Server-Side File Type Validation
Uploading Multiple
....Read More |
Rating
|
|