The very next day after I wrote my original post on using 3rd-party controls, the EntitySpaces team announced that they would no longer continue the framework and would make it open source by the end of 2012. Yikes! Now what? I have 2 choices - do nothing with my existing code and continue to use … Continue reading Should You Use 3rd-Party Controls and Frameworks? – Follow-Up
When you first start programming in a language, be it .NET, PHP, JAVA, or whatever, you tend to stick with the built in functions and controls. This makes sense, because you are learning how it works, what its strengths are, and where its limitations will trip you up. But every programmer at some point will … Continue reading Should You Use 3rd-Party Controls and Frameworks?
The Situation: You get an error when you try to save edits to a record in a DevExpress ASPxGridView. The grid view is bound to an EntitySpaces esDataSource, which is populated using EntitySpaces dynamic query functionality. The ES dynamic query syntax allows you to use joins between entities like this (actual code from one of … Continue reading How To Edit a Record in an ASPxGridView Bound to EntitySpaces’ esDataSource that Uses a Join
The Situation: You need to get the value of one of the columns in the row you are deleting in a GridView to do some processing before the row is deleted. A Solution: When using the RowDeleting method, you cannot use e.Row.Cells.Controls to get the control in that cell like you can in the RowCreated … Continue reading How to get the value from a GridView column on RowDeleting
The Situation: You need to get the name of the current page request folder from the URL. A Solution: Use this method:
The Situation You are trying to find out if a string exists in a List object. A Solution You could use a Find with a predicate, or try the simple method below.
I am a big fan of EntitySpaces, a .NET ORM framework that I find very easy to use. When the developers upgraded the framework in 2010, they "broke" some things I used in my code. Specifically, they changed the way instantiate a new ORM entity. Entities used to have a method that looked like this... … Continue reading How to Troubleshoot Problems Upgrading an Existing App from EntitySpaces 2009
The Situation You have uploaded data into a DataTable (perhaps from a CSV file - see How To Parse a CSV File Into a DataTable for Use In Your Code) and now you need to retreive the data from the DataTable. BUT because the data has come from an uploaded from a CSV file, it … Continue reading How To Get Values from a DataTable without Crashing if a Column Doesn’t Exist
The situation: You have uploaded a CSV file, and you now need to do something with the data in your programming. A Solution:
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