How Do I Access the Profile of Other Users Directly in VB.NET?

Posted by: Imar Spaanjaars at Tuesday, January 03, 2006 10:44:39 PM in: ASP.NET 2.0

You may be aware of the new ASP.NET 2.0 Profile feature that allows you to store and retrieve information for the currently logged on user. This Profile feature makes it extremely simple to store user specific information, like a user's address, phone number, or site preferences. (Note: if you're not familiar with ASP.NET 2.0 Profiles check out the section Storing User Profiles in the ASP.NET Quick starts).

But what if you want to access the Profiles data for another user? For example, what if you want to allow a site administrator to change the personal data of all users in your site? The trick to make this possible is to use the ProfileCommon class, which inherits from ProfileBase. This article shows you how you can use this class to access the Profile data for arbitrary users.

Read on ...

How Do I Access the Profile of a Different User Directly in C#?

Posted by: Imar Spaanjaars at Tuesday, January 03, 2006 10:06:06 PM in: ASP.NET 2.0

You may be aware of the new ASP.NET 2.0 Profile feature that allows you to store and retrieve information for the currently logged on user. This Profile feature makes it extremely simple to store user specific information, like a user's address, phone number, or site preferences. (Note: if you're not familiar with ASP.NET 2.0 Profiles check out the section Storing User Profiles in the ASP.NET Quick starts).

But what if you want to access the Profiles data for another user? For example, what if you want to allow a site administrator to change the personal data of all users in your site? The trick to make this possible is to use the ProfileCommon class, which inherits from ProfileBase. This article shows you how you can use this class to access the Profile data for arbitrary users.

Read on ...

Finished Writing on ASP.NET 2.0 Instant Results

Posted by: Imar Spaanjaars at Thursday, December 08, 2005 2:58:44 PM in: Imar's Blogs
Today I finished writing on my new book called ASP.NET 2.0 Instant Results. At 2:40 p.m. I sent in my last chapter and other related materials.
Read on ...

How Do I Set the DefaultFocus or DefaultButton in a Page Based on a Master Page in ASP.NET 2.0?

Posted by: Imar Spaanjaars at Thursday, November 03, 2005 8:41:33 PM in: ASP.NET 2.0
You may be aware of the new DefaultButton and DefaultFocus properties that a few ASP.NET 2.0 controls, including the HtmlForm have. These properties allow you to determine which button gets "clicked" when you hit enter on the page, and which form control gets the focus when the page loads. (If you're not familiar with them, check out this MSDN help file) But how do you use this feature in a page based on a Master Page?
Read on ...

RTM Versions of Visual Studio 2005 Available!

Posted by: Imar Spaanjaars at Monday, October 31, 2005 7:03:42 PM in: Imar's Blogs
Yoohoo, just before the weekend, Microsoft released the RTM (final) versions of Visual Studio 2005 and SQL Server 2005.
Read on ...

Long Time Off-Line

Posted by: Imar Spaanjaars at Sunday, September 18, 2005 10:18:15 AM in: Imar's Blogs
Some of you may have noticed that my web site was off-line for a long time. The site went down at the end of August and is only up again for a few days...
Read on ...

Getting a page's URL in code-behind

Posted by: Peter Lanoie at Saturday, August 06, 2005 8:24:37 PM in: ASP.NET 1.x
You may have the need to be able to get the URL to a page in a web application from the server code. This might be because the page could move or because the URL is dynamic in some way. While this would be a nice feature to have in .NET, there are reasons it is not. We'll discuss this and a simple solution for getting a page's URL in server-side code that saves us from hard coding it in the referencing pages.
Read on ...

Why Do I Get Unexpected 404 Errors in Visual Web Developer 2005 Express Edition?

Posted by: Imar Spaanjaars at Saturday, May 14, 2005 3:31:51 PM in: ASP.NET 2.0
Today I was experiencing unexpected 404 "The resource cannot be found" errors when working with Visual Web Developer 2005 Express Edition beta 2 in combination with the ASP.NET Development Server. No matter what I tried, and what file I tried to open, I kept getting the same error.
Read on ...

Binding ObjectDataSource controls to Custom Methods

Posted by: Imar Spaanjaars at Sunday, April 17, 2005 6:39:28 PM in: ASP.NET 2.0
The new ASP.NET 2 data controls, like the SqlDataSource and the AccessDataSource grealty simplify data access in your Web Applications. However, they have one major drawback: they flood your pages with Sql statements. Not so with the ObjectDataSource, that enables you to bind to the results of a standard method in your Business Logic Layer. The ObjectDataSource can in turn be bound to a data aware control, like the new GridView or DetailsView controls
Read on ...

The Microsoft Enterprise Library

Posted by: Imar Spaanjaars at Monday, March 07, 2005 10:12:30 PM in: Imar's Blogs
I recently downloaded and installed the Microsoft Enterprise Library and I must say it's an amazing piece of technology. I've been using several of the separate Application Blocks in the past and they have saved me a lot of development time.
Read on ... 1234567891011121314151617181920212223242526272829