The situation: You have uploaded a CSV file, and you now need to do something with the data in your programming. A Solution:
Programming How-To Archive
DotNetNuke Module Development – How To Access User Profile Properties
The situation: You need to access user profile properties in a custom DNN module for display or perhaps pre-filling a form. Here's how I handled it recently: I created a method to retrieve the profile property of interest. I could have accessed the property directly, but I wanted to customize what came back and to … Continue reading DotNetNuke Module Development – How To Access User Profile Properties
Common Function Library – HasValue()
Like many programmers, I have a Common Function Library containing generic methods I use over and over again. Here is one of them. I use this often to test if a variable or object exists and if it has any value. This is an easy way to avoid NullReferenceExceptions or other errors that would crop … Continue reading Common Function Library – HasValue()
Elmah Signaling – How To Log Exceptions with Elmah but Continue Processing
Elmah is an excellent tool for web programmers. It is an extremely easy to install exception handler that logs application exceptions and sends the user to an "oops" page. It can also send an email to the developer or webmaster. But what if you want to log an error but NOT send the user to … Continue reading Elmah Signaling – How To Log Exceptions with Elmah but Continue Processing
How To Avoid Null Reference Exceptions in an ASPX File When Dynamically Populating a GridView or ListView Control
The situation: You have a GridView control with a TemplateField in your ASPX page that is dynamically populated from a database. You of course use an Eval() statement to dynamically populate the TemplateField, but the db field is nullable (and in fact contains a null value), and when you run the page, you get an … Continue reading How To Avoid Null Reference Exceptions in an ASPX File When Dynamically Populating a GridView or ListView Control