开发者

Is it possible to avoid iframe generation in ASP .NET Masterpage

I am using asp menu in masterpage.master to switch between pag开发者_StackOverflow社区es in an intranet site. It is causing layout issues in IE8, since it generates iframe which is shrinked to a default size. The iframe does not stretch to remaining space of the container.

Is there a way to avoid iframe generation when using asp menu in masterpage.master files?

EDIT : It seems that using asp:Content and asp:ContentPlaceHolder is the one which is causing iframe to be generated. (I use asp:ContentPlaceHolder in matserpage.master and asp:Content in the actual asp .net page)


The regular menu creates table-based menus. I haven't seen iframes. Either way, .NET 4 adds the RenderingMode property which lets you use list-based menus. This should give you the flexibility you want in combination with CSS.


I am not sure I have ever seen iFrame generation with a menu in ASP.NET. Regardless, if you want full control, consider the CSS Friendly adapters and use it to create a CSS driven menu rather than the table driven mess the control creates by default. You can download from http://www.asp.net.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜