I'm currently doing a lot of work using ASP.NET 2.0 (Beta 1) and have been coming across a lot of "beta features" that don't make a great deal of sense - or don't work properly. In a new on-going series of posts I'm going to list out any of these oddities in the hope that someone out there will be able to answer my questions / say that it is a bug / tell me I'm an idiot and aren't using it properly.
Todays questions are:
- Why do you have to nest a <% $ Resources:Localisation, SearchBar.AllCategories, '' %> in a Literal control?
- How do you localise the text in a <asp:ListItem /> tag as they wont allow child controls (i.e the literal control required).
- Why can't controls contained within a usercontrol be referenced in the form's defaultfocus & defaultbutton properties without using the fully qualified rendered control name i.e. ctl00$UserControlName$ControlName