The Situation You are trying to find out if an object exists in a List object. A Solution Use Linq. The example below looks for a User object in a List<User> by searching for the UserName:
The Situation: You have set up your CascadingDropDowns as shown on the ASP.NET AJAX Control Toolkit documentation here, using a web service to retrieve and populate your dropdowns. However, in addition to the value of the first dropdown, you need to pass other parameters to the web service to be used in your query. A … Continue reading How to Pass Extra Parameters When Using AJAX Toolkit CascadingDropDowns with a Database
I've done some more thinking about whether or not to use 3rd-party controls (see my original post, and this follow up) and I believe I have some "rules of thumb" that make sense now. My re-evaluation of my position on this has come because the EntitySpaces team announced that they would no longer continue the … Continue reading Should You Use 3rd-Party Controls and Frameworks? – Final Word?
The Situation: You need to to use a control that is not fully compatible with the latest version of Internet Explorer (or you find that your page just doesn't function the same in the latest version). A Solution: The normal solution (and the one that nearly everyone can use UNLESS they are working with ASP.NET … Continue reading How to Force an ASP.NET Page into IE Compatibility Mode (Even when Using Themes)
The Situation: You have an ASP.NET page that uses an ObjectDataSource to provide data access for a GridView, FormView or list control like a DropDownList or CheckboxList. When a data access error occurs, you would like to display a message on the page to help users understand what is happening. A Solution: You could try … Continue reading How to Catch Errors when Using ObjectDataSource