Strongly Typed Dynamic User Controls

by Ira 3. June 2008 17:53
A short time ago I was confronted with a serious problem. What I needed to do was dynamically choose a UserControl as well as fire methods from that UserControl. The problem lies in the fact that a UserControl does not implement my custom methods that I needed for my controls. Each control was similar and would have the same methods but it would have different display characteristics.   That was when I had a small epiphany. Why can't I just make an abstract base class? Well the answer is you can! Som... [More]

Tags: , , ,

Ajax | ASP.NET | C# | User Controls

Creating a Simple Site Wide User Notification Pattern

by Ira 27. February 2008 18:17
When creating websites, it seems that one problem I always run into is how to gracefully notify the user of errors or display messages to them. In most of my sites I use master pages, so I thought it would be pretty sweet to integrate a messaging pattern into my master pages. I also wanted a quick access method to the notification system from any point in the code-behind of the website that was short and simple to call. The messaging pattern should also ajax aware, and notifications should work in both a ... [More]

Tags: , , , , ,

ASP.NET | C# | JavaScript | User Controls

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About Me

IraIra
I'm just another developer from Florida.

 

Sponsors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

All code samples on this website are free for download, use, and modification with no warranty nor any implied warranty. Liscensed by:

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.