Get current text `](http://stackoverflow.com/questions/5297778/get-current-text-select) | reposting your question does not give you better answers. Edit your question instead, provide more useful information, comment on answers and reply to comments. – Felix Kling Mar 14 '11 at 13:49

  • You have to keep in mind that items are kept in viewstate by ASP. Anything you add or remove without involving ASP is essentially going to get ignored. There are most likely ways around this, but if you're looking to dynamically populate a control with a collection of items (such as a DropDownList) you're probably going to have to use more than jQuery. – Brad Christie Mar 14 '11 at 13:50
  • 1 Answers1

    1

    You can try to avoid having ASP.NET changing your control's ID, by setting the ClientIDMode to Static.

    Kon
    • 27,113
    • 11
    • 60
    • 86
    • Why not? HtmlSelect inherits from System.Web.UI.Control, which has a property called ClientIDMode. – Kon Mar 14 '11 at 15:40