How Do I Pass Credentials to a Web Service that Uses Basic Authentication?

Posted by: Imar Spaanjaars at Saturday, February 26, 2005 3:20:31 PM in: ASP.NET 1.x
When you're working with Web Services that require authentication, you'll need a way to pass credentials. This snippet shows you how to pass a user name and password to a Web Service that is configured for Basic Authentication.
Read on ...

New Features and Articles Added

Posted by: Imar Spaanjaars at Sunday, February 13, 2005 9:34:30 PM in: Imar's Blogs
This weekend I finally got some time to work on my site again. I added two short FAQs in the ASP.NET section and a snippet in the CSS section. I also added a few new features and fixed some bugs
Read on ...

A Scrollable Table With a Fixed Header

Posted by: Imar Spaanjaars at Sunday, February 13, 2005 12:35:08 PM in: CSS
Consider this solution as obsolete as there are better alternatives available. Search the comments to this article for a few external links to better implementations.

If you need to present a lot of table based data, but you don't want to spoil your page layout with a very long table, you can use the following trick to create a scrollable table with a fixed header.
Read on ...

How Do I Determine if a Control Bound to a DataReader Has Rows?

Posted by: Imar Spaanjaars at Saturday, February 12, 2005 9:09:07 PM in: ASP.NET 1.x
If you use .NET Data Binding to bind data from a data source (like a DataSet) to a control (like a DataGrid or Repeater) you often want to know if the control contains any rows. You can then use this knowledge to, for example, hide the entire DataGrid and display a message with the text "No records found" instead. You can easily accomplish this with a DataSet, because you can retrieve the number of items in the DataSet using something like myDataSet.Tables[0].Rows.Count. But what if you use a DataReader like the SqlDataReader? This class does not expose a count property.... Fortunately, there is a way to work around this.
Read on ...

How Do I Add a Client Side Message Box to ASPX Pages?

Posted by: Imar Spaanjaars at Saturday, February 12, 2005 5:47:19 PM in: ASP.NET 1.x
Update: 06/11/2006
Due to a number of requests I received, I have added a VB version of the code example in this article

In many applications, it's common practice to use a client side dialog, like a message box, to ask the user for confirmation or display a message. For example, if you allow a user to delete, say, an article on your site, you better ask if they are sure they want to delete the item. Many people know they can add a confirmation box to standard HTML or classic ASP pages. However, the same trick is less well known for ASPX pages, but just as possible and easy to implement. This FAQ will show you a few different scenario's for adding a confirmation dialog to your ASPX pages.
Read on ...

Migrating to ASP.NET 2 - Part 2 - Setup and Master Pages

Posted by: Imar Spaanjaars at Sunday, January 23, 2005 1:46:56 PM in: ASP.NET 2.0

This is the second part of a (long running) article series about migrating a .NET 1.x Web site to ASP.NET 2. This installment focuses on the general setup of the new web site and the Master Page I am going to use.

Read on ...

'Re'implementing Interface Implementations: VB.NET vs. C#

Posted by: Peter Lanoie at Wednesday, January 05, 2005 5:09:34 PM in: .NET General
Let's say we have an interface implemented on a class. We want to create a subclass derived from the super class and change the implementation . The difference between C# and VB.Net make this a little tricky. So let's take a look at how it's done.
Read on ...

How Do I Make ADO Constants Available in my ASP Code?

Posted by: Imar Spaanjaars at Wednesday, January 05, 2005 4:56:34 PM in: ASP 3.0
If you use any ADO constant, like adOpenForwardOnly etc, ASP has to know what adOpenForwardOnly really means. There are a couple of ways to tell ASP where to look for these constants.
Read on ...

Migrating to ASP.NET 2 - Part 1 - Introduction

Posted by: Imar Spaanjaars at Sunday, January 02, 2005 3:09:46 PM in: ASP.NET 2.0

This is the first part of a (long running) article series about migrating a .NET 1.x Web site to ASP.NET 2. I'll show you how to take an existing site, and upgrade it to ASP.NET 2. As an example, I'll be using my own web site, Imar.Spaanjaars.Com, show you how I have designed and implemented the currently existing features, and how they can be upgraded to take advantage of the new ASP.NET 2.0 Framework. I won't be describing each and every feature in great detail, but instead focus on general concepts and techniques, and provide links to other articles with more in-depth information.

Each article starts with a little background about one of the new ASP.NET 2 features, like Master Pages, the new Login controls, the Provider Model, Skins, and so on. Next, I'll discuss how I implemented similar behavior in my current site, or how I managed to live without it. Then I'll explain how the new features work and how you can use it in your ASP applications. At the end of the article, I'll show you how I implemented the feature in my own site.

Read on ...

It's About Time I Start Writing Again!

Posted by: Imar Spaanjaars at Thursday, December 30, 2004 8:45:07 PM in: Imar's Blogs

Today I uploaded the official version 2.0 of my Web site. A while ago I launched the first beta of the site, and during the past 1 and a half week, I fixed the last few issues.

Read on ... 12345678910111213141516171819202122232425262728293031