August 24, 1999

Run Code Only When Form Is Submitted

Question: I have a Web page that uses a form to submit information to an ASP page. Once the data is submitted, the page is reloaded. At this point, if the client refreshes the screen, the form is resubmitted a second time. Is there any way to clear the form

Installing IIS 3.0 to Read ASP Files

Question: We have a form that uses an ASP file to post results in Access 97. It works fine on my computer using Microsoft Personal Web Server, but will not work on Internet Information Server (IIS) 3.0. Do we have to install something for IIS 3.0 to read ASP files?

Publish Information From a Database to a Web Page

Question: How can I publish information from a database to a Web page? Answer: Microsoft’s Active Server Pages (ASP) makes it a snap to publish information from a database onto a Web page. All you need is Microsoft Internet Information Server 4.0, a database (such as Microsoft Access or SQL

WebClasses vs. Active Server Pages

Question: What do you suggest using as far as WebClasses versus Active Server Pages (ASP) is concerned? It appears that WebClasses do everything ASP can do, and are faster. Answer: I do not know of any “industrial-strength” Web sites that use WebClasses. Most Web developers that I know who are

Delay Web page loading with the HTML META Tag

HTML META command can be used to instruct the browser to wait specified seconds and then load the web page. This is the code, which can be used to accomplish this requirement: Change the X to the number of seconds you want to wait before MyWebPage.html is loaded. MyWebPage.html is

Take Advantage of CREATE TABLE Supported Constraints

You should always try to take advantage of the features in SQL Server to automatically maintain the integrity of data. The CREATE TABLE statement supports data integrity. You can specify table or column level constraint along with the CREATE TABLE statement. CHECK constraints ensure that column values are valid. DEFAULT

Always Create User Defined Data Types in the Database

While designing the database for your application, you should always create user defined data types for columns across the database. User-defined data types ensure consistency of column definitions across the database. User-defined datatypes are defined in terms of system datatypes. User-defined datatypes permit frequently used type information to be accessed

Make an ATL Object Noncreatable

Here is a simple way to make your COM object noncreatable. You can change the attributes of an ATL-based COM object so that the automation client cannot directly create the object. In this case, the object would be returned via a method call on another object rather than created directly.