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[1].Controls[1] 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
How to Get the Name of the Current Folder from the URL
The Situation: You need to get the name of the current page request folder from the URL. A Solution: Use this method:
How to Find the Index of a String in a List
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.
How to Troubleshoot Problems Upgrading an Existing App from EntitySpaces 2009
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
How To Get Values from a DataTable without Crashing if a Column Doesn’t Exist
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