paseena
paseena

Reputation: 4315

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

I am using asp menu in masterpage.master to switch between pages 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)

Upvotes: 0

Views: 580

Answers (2)

Nelson Rothermel
Nelson Rothermel

Reputation: 9736

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.

Upvotes: 1

Gregory A Beamer
Gregory A Beamer

Reputation: 17010

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.

Upvotes: 0

Related Questions