Integrating IE8 Web Slices into others Web Framework
Developing a web slices? cool we also do that…
Have you ever install the web slices, the green icon is diplayed in the html markup BUT you get a notification like this…
“ Error, this document is not support by the web slices”
When this problems occurs
- you are using a base framework like Umbraco/CS/DNN
- you are using ‘single page display’ for your web slices and your web is xhtml 1.1 compatible
Well doing a research and trial error… and found the problem is because my framework always generated the web slices as text\xhtml and the web slices “only support” text\html, there fore to force the Web slices, you can do this by
- make sure that your web slice is using alternative content display, by creating a separate aspx pages and wiring it in web slices css div
- creating a prerender events in your code… like this
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
Response.ContentType = "text/html";
}
Happy web slicing :)