.Net
A User Control to Control User Controls
This was made by a guy I work with, great way to simplify the use of user controls in an ASP.Net application add the following to the web.config under the “controls” section: Then create the following user control: And the following in the code behind: Now, instead of having to call any future user control [...]
Clearing and setting selected value of asp:dropdownlist
On page postback when a “clear selection” button was pressed, I wanted to set the value of a drop down list back to the default state. ‘ddldays is the ID of the asp:dropdownlist in my application. ‘first we clear the current selection, this prevents an error where the application thinks you are trying to select [...]
Out Running