I encountered a bug in .Net 2.0 for which I can't find any reference on the web. I have a toplevel masterpage container looking like the one below. It's a simplified version to isolate te problem. The <%=Resources.Search.SearchText %> is actually included in (client side) html control. (it has to be clientside).
Toplevel Masterpage Sniplet:
<asp:ContentPlaceHolder ID="PageHeadingDefaultPlaceholder" runat="server">
<asp:HyperLink ID="contact" runat="server" TabIndex="7" NavigateUrl="~/contact.aspx"
Text="<%$ Resources: WireFrame, Contact %>" ToolTip="<%$ Resources: WireFrame, ContactToolTip %>" />
<%=Resources.Search.SearchText %>
</asp:ContentPlaceHolder>
Above code works. Why shouldn't it? When I create a Nested masterpage inheriting from my toplevel master and create an .aspx based on this nested masterpage, the code works. However: when I want to overwrite the placeholder in my nested masterpage, for example like so:
Nested Masterpage Sniplet:
<asp:Content ID="Content4" runat="server" ContentPlaceHolderID="PageHeadingDefaultPlaceholder" />
...the page crashed and following error is returned:
Specified argument was out of the range of valid values.
Parameter name: index
I suspect is has something to do with combining: <%$ Resources: WireFrame, Contact %> and <%=Resources.Search.SearchText %> statements within an inherited placeholder.
I'm lost, all help is greatly appreciated.
Rinze Cats
Hope this helps !
Rinze
---------
please select 'mark as answer' if this post helped you!