CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/27/2007 9:08:32 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 27 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
Rinze
Asp.Net User
Bug using nested masterpages9/27/2007 9:08:32 AM

0

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!
Amanda Wang - M
Asp.Net User
Re: Bug using nested masterpages10/2/2007 2:27:44 AM

0

Hi,

If you  delete the HyperLink that is in the ContentPlaceHolder  on the top-level master page, make the ContentPlaceHolder is empty, do you still have the problem?


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
Rinze
Asp.Net User
Re: Bug using nested masterpages10/2/2007 10:23:02 AM

0

Hi Amada, thanx for the reply

When removing the hyperlink from the masterpage the error does not occur. When removing the <%=Resources.Search.SearchText %> statement and leaving the hyperlink in place, the error does not occur. Leaving them both in place triggers the problem.

The hyperlink itself is not the cause: this code triggers the problem as well, but only when i use the placeholder in the nested master page as described above.

 <%=Resources.Search.SearchText %>
 <asp:Literal runat="server" Text="<%$ Resources: WireFrame, SiteMapToolTip%>" />  

 Rinze


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
Amanda Wang - M
Asp.Net User
Re: Bug using nested masterpages10/3/2007 2:42:46 AM

0

Hi Rinze,

I guess  your peobelm is related to the code Resources.Search.SearchText , how about you put Resources.Search.SearchText  in the codebehind to debug it? Do you still have the problem?

You can try to do like in the codebehind:

string strSearch;

strSearch =  Resources.Search.SearchText;

 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
Rinze
Asp.Net User
Re: Bug using nested masterpages11/19/2007 8:00:19 AM

0

I'm sorry, it's been a while.

The problem is not the use of the resource. The resource is available and removing either statement causes the other to display correctly. I'm quite convinced this is a bug.
Maybe the bug is only on the declarative side of things, but setting the value programmatically using a codebehind (or code beside) just isn't an option.

Kind regards,

rinze


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
PROFESSIONAL ASP.NET 2.0 DESIGN: CSS, THEMES, AND MASTER PAGES Authors: Jacob J. Sanford, Pages: 504, Published: 2007
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
ASP.Net 2.0 MVP hacks and tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normen, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
ASP.NET 2.0 Website programming: problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Asp .Net 2.0 Website Programming Authors: Marco Bellinaso, Pages: 0, Published: -1

Web:
VS 2008 Nested Master Page Support - ScottGu's Blog Step 4: Creating Content Pages using our Nested Master Pages ..... bug-patch: Master Page support for ContentPlaceHolders inside the ...
How do I use DashCommerce in a nested master page without ... I'm currently using the open source license to implement DashCommerce with my web application. ... Find a bug? Create a Work Item for a fast response. ... It's definitely not written to handle a nested master page, ...
Feedback: Visual Studio 2008 Design Mode Nested Master Pages Bug Mar 13, 2008 ... Visual Studio 2008 Design Mode Nested Master Pages Bug ... Additially once a web form using a nested master page is loaded in design mode it ...
How can I implement Nested Master Pages in ASP.NET MVC RC2 ... I want to re-use the existing MasterPage to implement a two column layout using Nested MasterPages which was possible on previous releases of the ASP. ...
Invalid cast of master page class - bytes I can't think this can be anything other than a bug in the Framework. As a work around I'm considering not using nested master pages and ...

Nested Master Page Web Control Not Declared Isses - ng.asp-net ... ... I cannot reference the web control. It is as if it hasn't been declared. Is this a bug? ... NET Forums I am using nested master page in my aspx file. ...
OnSelectedNodeChanged handling client side (treeview 2.0) - ng.asp ... using response.redirect causing error ... tags and creating event stubs when using nested master pages ... menu navigation control bug? ...
page_load in web part controls not firing for anonymous users - ng ... I am using nested Master pages. The WebPartManager and the Zones are on the root ... I was able to reproduce this bug on Beta2, but it is fixed in RC. ...
Database Driven MenuControl C# - ng.asp-net-forum ... howto register a clientscript in a page using nested masterpage · extending site map · bug with masterpages and usercontrol outputcache shared=false? ...












custom content for page derived from master.

is there a way to hide a menu item?

treeview to work with javascript disabled,use treeview across pages (treeview present on master page)

simply launching a webpage from my .aspx.vb file?

bind menu control using database

forms in master pages

error regarding attaching database

accessing controls from masterpage

build up menu at runtime

refresh content page only

design view with master pages

how to use iframes in asp.net for menu control?

treeview question

stupid problem... i need help.

dynamic menus and window status?

background image on a masterpage

dynamic menu control without using sitemap

passing lots of data between webpages

how can i access anyone control on another page?

treeview in frame won't expand

logout from master

replacing text with image on menu navagation

understanding - web.sitemap

login control - can i clear the username on login failure?

can my ascx become page able

using calendar control through a content page

target for an url with sitemap provider

linking formview to treeviw

problems customizing the menu control

how to set background image in menuitem?

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT