Dropdownlist control with s for asp.net (webforms)?
Can anyone recommend a dropdownlist control for asp.net (3.5) that can render option groups? Thanks
Can anyone recommend a dropdownlist control for asp.net (3.5) that can render option groups? Thanks
I’m looking to do something akin to
I have a custom ASP.NET server control CustomControl with a property attribute Path.
Update: This turned into a blog post, with updated links and code, over at my blog: https://egilhansen.com/2008/12/01/how-to-take-control-of-style-sheets-in-asp-net-themes-with-the-styleplaceholder-and-style-control/
I have a project and I am trying to register a custom server control (there is no .ascx file) on the page. I am currently using
I’m creating a server control that basically binds two dropdown lists, one for country and one for state, and updates the state dropdown on the country’s selectedindexchanged event. However, it’s not posting back. Any ideas why? Bonus points for wrapping them in an UpdatePanel (having rendering issues; maybe because I don’t have a Page to reference?)
The problem: I am embedding a CSS file into a custom control library with several controls. I want to share the same CSS file for all of the controls regardless of how many instances of them are on a given form. When more than one control is on the form, I would like exactly 1 reference to the CSS file in the HTML header of the ASP.NET page.
The generated HTML code for my custom ASP.net server control generates the name attribute for child controls, instead of the id attribute. Something like this :