Welcome to imar.spaanjaars.com


How Do I Fix ASP 80004005 errors?
Published 21 years ago
When you're working with ASP or ASP.NET applications and a Microsoft Access database, you're likely to run into an error like this:
The Microsoft Jet database engine cannot open the file 'C:\Inetpub\wwwroot\YourSite\Databases\YourDatabase.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
/YourSite/YourDataAccessPage.asp, line 15
Alternatively, you may get this error instead:
Operation must use an updateable query.
/YourSite/YourDataAccessPage.asp, line 15
Both errors basically mean the same: the account that your Web server is running under does not have the necessary permissions to read from or write to the database.
This article will explain the steps you need to perform to fix this problem. First I will explain how you can find out the current account that the Web server is using to connect to the database. In the second part of the article I'll explain how to change the security settings so the Web server can successfully access the database.
Read on ...
Find Out Whether a Specific Column Exists in a Database Table
Published 21 years ago
This snippet will allow you to check whether a certain column exists in a database table or not. Useful when you're coding against a database which schema you don't fully know. Just change the name of the column you're looking for (nameToCheck), the Connection String and the SQL SELECT statement, the bold items in this snippet.
Read on ...
Howto Create a Hit Counter Using a Database in ASP.NET 1.x with VB.NET
Published 21 years ago
If you have a live Web site on the World Wide Web, you may be interested
in how many people are visiting your site. You can of course analyze the
log files of your Web server but that information is usually difficult
to read. The log files contain information for each and every request a
visitor has made to your site, including resources like images, Flash movies
and so on. This makes it near impossible to extract information about individual
users. It would be a lot easier if you could count the number of individual
users that have visited you since you started your site. It would also
be useful if you could see the number of users that are currently browsing
your site.
This article will show you how to accomplish these two tasks by storing
the hit counters in shared variables in the Global class
and in a database using code in the Global.asax file.
The counters in the shared variables are used to display them on a page
in your Web site; either as a counter so your visitors can see it as well,
or somewhere on a page in your Admin section, so only you have access
to them. By writing the counters to a database you can maintain their value
even when you restart the Web server, while you still have a fast and scalable
solution.
This article extends
the ideas from two previous articles where the values of the counters were
just stored in static variables in
the Global class and in a text
file.
There are also Classic ASP and
ASP.NET C# versions of this article available.

How Do I Precompile an ASP.NET Whidbey Application?
Published 21 years ago
UPDATE (2005-12-06): The compilation features presented in this article are obsolete. It's recommended that you look at Web Deployment Projects instead.
Unlike Web sites created with Visual Studio .NET 2002 or 2003, there is no need to do a full compile of the project whenever something has changed in your site. The new Code Behind feature and the Code directory used in ASP.NET Whidbey allow you to make changes without recompiling. As soon as the changed page gets requested, the .NET FRamework will recompile the page on the fly.
However, it is sometimes useful to compile the application right after you have deployed it. One reason for this precompilation is speed. Another is code protection. A compiled application does not expose its source in the ASPX pages any longer. There are two ways to compile an application at deployment time: In-place compilation and Precompilation for Deployment
Read on ...
Why Do I Receive a "The page cannot be found" Error With ASP.NET On Windows Server 2003?
Published 21 years ago
When you have installed ASP.NET on Windows Server 2003, you may receive the following 404 - Page Not Found error:
Read on ...
Lorem ipsum dolor sit amet - Placeholder Text
Published 21 years ago
Placeholder text, use to fill in blank area's in a Web site, instead of the "content goes here" thingies.
For more information, some history and a Lorum Ipsum generator, check the Lorum Ipsum Web site.

Display Information About a Microsoft Access Database
Published 21 years ago
The following block of code will display the properties of ALL tables in a Microsoft
Access database. For the code to run successfully, the variable
MyConnectionString needs to contain a
valid connection string pointing to the Access database.
With
this code, all tables, including system tables are displayed. If you want to
limit the list, use myTable.Type to
determine the type of the table and skip the system tables. User tables will
return "TABLE", while system tables will return "ACCESS TABLE".
If you want to display information about just a single table, remove the For Each loop and uncomment the line that starts with Set myTable. Don't forget the pass the name of the right table to the Tables collection.

Execute a Stored Procedure Without an Explicit ADO Command Object
Published 21 years ago
The following code shows you how to execute a Stored Procedure (called MyStoredProcedure) in ASP without creating an explicit ADO Command object. The Stored Procedure expects two parameters: @FirstParam (of datatype int) and @SecondParam (of datatype varchar). Modify the parameter list to suit your requirements
Read on ...
How Do I Store and Access My Connection Strings in ASP.NET 2?
Published 21 years ago
With ASP.NET 1.0 and 1.1 many people stored their connection strings in the Web.config file under the appSettings element. But is there a better way to save these settings in ASP.NET 2.0?
Read on ...
Howto send E-mail from an ASP page
Published 21 years ago
Note: this is a very old article targeting Classic ASP. To see how to send email from modern-world ASP.NET core applications, check out the article Improving your ASP.NET Core site's e-mailing capabilities.
This article will show you how simple it can be to send an e-mail from an ASP page. With just a few lines of code, you can add mail sending capabilities to your ASP page in your Web site. Notice that I put the focus on can be; depending on your network setup, this approach may be very easy, or it may require you to setup or configure your network for this code to work. See the reference section at the end of this document for more information.
Read on ...Mobile: False
Crawler: True
I: False