help.net


Musing on .Net

News

Windows Phone Apps I recommend

FotoBank


FotoIreland



hit counters






Open source CMS


My blog

Irish blogs

Locations of visitors to this page Get Chitika eMiniMalls

.Net useful

Blogs I read

PocketPC

SQL

Usability

January 2008 - Posts

Multithreaded WPF Progress Dialog

With this WPF progress dialog, you can display a progress window and invoke a method on a background thread with just a few lines of code. Let’s say, you have a worker method called CountTo100, then all you need to get things running is this:

//create a dialog instance
ProgressDialog dlg = new ProgressDialog();
dlg.Owner = this;
dlg.DialogText = "hello world";

//we cannot access the user interface on the worker thread, but we
//can submit an arbitrary object to the RunWorkerThread method
int startValue = int.Parse(txtStartValue.Text);

//start processing and submit the start value
dlg.RunWorkerThread(startValue, CountTo100);
 
Read more...
 
 
Posted: Jan 24 2008, 04:01 PM by help.net | with 1 comment(s)
Filed under:
OpenID implementation in C# and ASP.NET

OpenID is a cool technology but could be tricky to implement with ASP.Net.

Check this post by Mads Kristensen to see an implemention in C#

Read more...

 

Posted: Jan 24 2008, 03:49 PM by help.net | with 1 comment(s)
Filed under:
Building a Simple Blog Engine with ASP.NET MVC and LINQ

Microsoft released the first CTP of ASP.NET 3.5 Extensions and it includes ASP.NET MVC Framework as one of the main extensions for ASP.NET 3.5. In the first part of this article series about building a simple blog engine with ASP.NET MVC and LINQ, Keyvan introduces the MVC pattern, ASP.NET MVC Framework, and the fundamentals of a simple blogging engine.

Read more...

 

Understanding Single Sign-On in ASP.NET 2.0

In this article, Masoud Tabatabaei discusses the concept of Cross Application Authentication using ASP.NET authentication model consisting of Membership Providers, web.config configuration, encryption, and decryption of configuration files. At the end of the article he also examines the application of the concept using ASP.NET login controls.

Read more...

 

Posted: Jan 22 2008, 12:46 PM by help.net | with 1 comment(s)
Filed under:
A Naming Scheme for Database Tables and Fields

Database developers have historically used a somewhat cryptic system for naming database tables and fields. Originally a result of the limitations of database management systems (DBMS), these naming schemes - or the lack thereof - have been adopted by convention and tradition. However, as database applications become more complex, with more tables and larger teams of developers, and as developers come and go, it becomes much more important to implement a robust and disciplined naming scheme for database objects. A well-defined naming scheme becomes more important when you adopt object relational mapping (ORM) technologies or automatic code generation.

This article presents one scheme that has worked for me for years in multiple successful commercial applications.

Perhaps the most common practice in database naming is to use all one case (upper or lower) with words separated by underscores, and heavily abbreviated. Fixed case names have become the standard because database systems are traditional case-insensitive in table and field names (or required fixed case). It is also a holdover from academia where use of a single case is common not just in database design, but in programming languages (for example, C language is traditionally taught in lower case and FORTRAN in upper case). Separating words with underscores is a natural result of fixed case names and also is commonplace in academia. The heavy use of abbreviations is a holdover from the days of dBase and other systems where there was a stringent limit on table and field name lengths. Many database designers schooled in the older systems still retain this use of abbreviated names in a severe case of the psychological principle of learned helplessness.

Read more...

 

Implementing a super-fast, size-constrained generic cache

Alexander Mossin shows how to create a high-performance cache with a maximum size.

Read more...

 

Posted: Jan 22 2008, 12:24 PM by help.net | with 2 comment(s)
Filed under:
Building a shopping list

This is the eighth part of an eleven-part series on building an online shopping web site. In this part, we will continue to look into the backside management tasks associated with product and order adding, modifying, and deleting, as well as managing comments on the products.

Read more...

 

Posted: Jan 22 2008, 12:08 PM by help.net | with 1 comment(s)
Filed under:
Caching Images in ASP.NET

There are a lot of ways to improve performance in web applications. One of the simplest but most effective methods is to cache images on the client. In this article Karin Huber would like to show how they implemented image caching for our DotNetNuke website.

Read more...

 

Posted: Jan 22 2008, 12:05 PM by help.net | with 1 comment(s)
Filed under:
Implementing the .Net IComparer interface

The aim of this article is to show how I think Explorer does this better than DOS and provide a class to reproduce this in their .Net programs.

Read more...

 

Posted: Jan 22 2008, 12:02 PM by help.net
Filed under:
3 free ebooks
3 ebooks to learn more about LINQ, ASP.NET AJAX and Silverlight.

 http://csna01.libredigital.com/ (registration required)

 

More Posts Next page »