July 2012
-
Set up a Multi-Line Editable GridView Disassociated from a DataSource
GridView controls are versatile multi-purpose ASP.NET widgets. I like the default functionality when hooked up to a data source, but depending on a project’s requirements I also like the ability to tweak the default functionality to make the GridView behave in different ways. For example, in past projects users have asked me to create a more…
-
Using an XMLDataSource with a DropDownList Control
If you work a lot with ASP.NET then it’s likely that at some point or another you will ask yourself how to hook up an XML Data Source with a DropDownList control. This just makes sense if you want to manage your drop-downs from a file rather than from a database, and carries a range…
-
Custom Function to Inject HTML Tags Iteratively into ListView Column Text
The ASP.NET system libraries offer powerful string manipulation functionality in the form of extensive Regular Expression support as well as String-specific functions such as Split and Replace. In 99% of cases these functions are sufficient to use to quickly manipulate strings. However in one case I had to put together a special function of my…