<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Mark Brown's Blog : Internet Explorer</title><link>http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx</link><description>Tags: Internet Explorer</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How to close window (self) without prompting in IE6 and IE7</title><link>http://blogs.msdn.com/mab/archive/2009/08/25/how-to-close-window-self-without-prompting-in-ie6-and-ie7.aspx</link><pubDate>Wed, 26 Aug 2009 00:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9884140</guid><dc:creator>mab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/mab/comments/9884140.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mab/commentrss.aspx?PostID=9884140</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mab/rsscomments.aspx?PostID=9884140</wfw:comment><description>&lt;P&gt;&lt;STRONG&gt;Scenario&lt;BR&gt;&lt;/STRONG&gt;Web application wants to pop-up a window as a certain size, chromeless, etc.&amp;nbsp; However doesn't want to have the opening (parent) window show.&amp;nbsp; Common usages are launching from shortcut or an application.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution&lt;BR&gt;&lt;/STRONG&gt;In the "parent" page that launches the popup.&amp;nbsp;&amp;nbsp; Put the following code to close your(self) in javascript:&lt;FONT color=#000080&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000080&gt;var self2 = window.open("", "_self"); &lt;BR&gt;self2.focus(); &lt;BR&gt;self2.opener = self2; &lt;BR&gt;self2.close();&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9884140" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx">Internet Explorer</category></item><item><title>How to autoresize parent frame height from child frame</title><link>http://blogs.msdn.com/mab/archive/2009/06/12/how-to-autoresize-parent-frame-height-from-child-frame.aspx</link><pubDate>Sat, 13 Jun 2009 02:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9740315</guid><dc:creator>mab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/mab/comments/9740315.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mab/commentrss.aspx?PostID=9740315</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mab/rsscomments.aspx?PostID=9740315</wfw:comment><description>&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;&lt;BR&gt;A parent document contains a frame that loads a file which content is dynamic and you want the frame to not scroll and autosize the height of the frame.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution&lt;BR&gt;&lt;/STRONG&gt;function autoResizeParent() {&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;// if no parent don't attempt to change&lt;BR&gt;if (parent != null) {&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;var frameList = parent.document.body.getElementsByTagName("iframe");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;// is there any frames?&lt;/P&gt;
&lt;P&gt;if (frameList != null) {&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;for (var i = 0; i &amp;lt; frameList.length; i++) {&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;var srcName = frameList[i].src;&lt;/P&gt;
&lt;P&gt;srcName = srcName.substr(srcName.lastIndexOf("/"));&lt;/P&gt;
&lt;P&gt;var srcParent = document.location.pathname.substr(document.location.pathname.lastIndexOf("/"));&lt;/P&gt;
&lt;P&gt;alert("Parent=" + srcParent + "\nFrame="+ srcName);&lt;/P&gt;
&lt;P&gt;// found myself&lt;/P&gt;
&lt;P&gt;if (srcParent == srcName) {&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;// set parent frame height to my height&lt;/P&gt;
&lt;P&gt;frameList[i].height = document.body.offsetHeight;&lt;/P&gt;
&lt;P&gt;// force scrolling off&lt;/P&gt;
&lt;P&gt;frameList[i].scrolling = "no";&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;}&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9740315" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx">Internet Explorer</category><category domain="http://blogs.msdn.com/mab/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>How to recycle a IIS6 website in Windows Server 2003 SP1</title><link>http://blogs.msdn.com/mab/archive/2009/04/20/how-to-recycle-a-iis6-website-in-windows-server-2003-sp1.aspx</link><pubDate>Mon, 20 Apr 2009 21:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9557085</guid><dc:creator>mab</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mab/comments/9557085.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mab/commentrss.aspx?PostID=9557085</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mab/rsscomments.aspx?PostID=9557085</wfw:comment><description>&lt;P&gt;Many clients I have worked with simply use the IISReset.exe command to recycle applications.&amp;nbsp; Although this may have the desired affect sometimes, there are many alternatives that are better.&amp;nbsp;By no means is this an exhaustive list but will give you some options when a specific website is causing problems (i.e. hung, OOM).&amp;nbsp;&amp;nbsp; Stopping a website doesn't reset memory or the worker process it just stops the website from processing the requests.&amp;nbsp;&amp;nbsp; Therefore, the website "start/stop" actions are not listed below.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Single Web Application "resets"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Recommended:&lt;/STRONG&gt; Recycle the application pool of the specific website's application pool.&amp;nbsp; With Windows Server 2003 SP1 the command line is iisapp.vbs:&amp;nbsp; Reference: &lt;A href="http://blogs.iis.net/chrisad/archive/2006/08/30/Recycling-Application-Pools-using-WMI-in-IIS-6.0.aspx" mce_href="http://blogs.iis.net/chrisad/archive/2006/08/30/Recycling-Application-Pools-using-WMI-in-IIS-6.0.aspx"&gt;http://blogs.iis.net/chrisad/archive/2006/08/30/Recycling-Application-Pools-using-WMI-in-IIS-6.0.aspx&lt;/A&gt;.&amp;nbsp; You can use a process id /p or an application id with /a.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Examples:&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;D:\WINDOWS&amp;gt;&lt;STRONG&gt;iisapp /p 596 /r&amp;nbsp;&lt;BR&gt;&lt;/STRONG&gt;Microsoft (R) Windows Script Host Version 5.6&lt;BR&gt;Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;BR&gt;Application pool 'DefaultAppPool' recycled successfully.&lt;BR&gt;&lt;BR&gt;D:\WINDOWS&amp;gt;&lt;STRONG&gt;iisapp /a DefaultAppPool /r&lt;/STRONG&gt;&lt;BR&gt;Microsoft (R) Windows Script Host Version 5.6&lt;BR&gt;Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;BR&gt;Application pool 'DefaultAppPool' recycled successfully.&lt;/LI&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/OL&gt;
&lt;DIV&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Reseting &lt;EM&gt;&lt;U&gt;ALL&lt;/U&gt;&lt;/EM&gt; websites on a server&amp;nbsp;(not recommended)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Start and stop specific&amp;nbsp;services &lt;/STRONG&gt;for web services only (do not do the start commands if you are not recycling)&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;NET STOP W3SVC&lt;BR&gt;NET STOP HTTPFilter &lt;EM&gt;(if having problems with SSL)&lt;BR&gt;&lt;/EM&gt;NET START HTTPFilter &lt;EM&gt;(if having problems with SSL)&lt;/EM&gt;&lt;BR&gt;NET START W3SVC&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;/SPAN&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;Use &lt;STRONG&gt;IISReset /NOFORCE&lt;/STRONG&gt;&amp;nbsp;, this causes the system to not forceable terminate the internet services if timeout or error occurs.&amp;nbsp; Note: this will reset all IIS services that are enabled: FTP, NNTP, WWW, IISAdmin, etc.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;IISReset&lt;/STRONG&gt; (without /NOFORCE) causes a forceable stop if doesn't respond within 60s (the&amp;nbsp;stop default can be changed via command line).&amp;nbsp; This may lead to IIS configuration loss (&lt;A href="http://support.microsoft.com/kb/286196" mce_href="http://support.microsoft.com/kb/286196"&gt;http://support.microsoft.com/kb/286196&lt;/A&gt;). Note: this will reset all IIS services that are enabled: FTP, NNTP, WWW, IISAdmin, etc.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Reboot&lt;/STRONG&gt; the server.&amp;nbsp; Not recommended and may cause signficant data loss.&amp;nbsp; Note: this attempts to shutdown or forcably shutdown all applications on the server not just IIS related.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Power cycle&lt;/STRONG&gt; the server.&amp;nbsp; Not recommended and may cause signficant data loss.&amp;nbsp; Note: this is extremely dangerous and only to be used when all other options (even one's not listed above) have been tried.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN class=077585517-20042009&gt;&amp;nbsp;&lt;FONT face=Verdana&gt;Hope this helps ...&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9557085" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx">Internet Explorer</category><category domain="http://blogs.msdn.com/mab/archive/tags/IIS/default.aspx">IIS</category></item><item><title>ASP.NET 2.0 Web Part vs Sharepoint 2007 Web Parts</title><link>http://blogs.msdn.com/mab/archive/2007/02/28/asp-net-2-0-web-part-vs-sharepoint-2007-web-parts.aspx</link><pubDate>Wed, 28 Feb 2007 21:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1775172</guid><dc:creator>mab</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mab/comments/1775172.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mab/commentrss.aspx?PostID=1775172</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mab/rsscomments.aspx?PostID=1775172</wfw:comment><description>&lt;P&gt;&lt;STRONG&gt;So what is the deal with ASP.NET web parts and SharePoint web parts?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Well, glad you asked.&amp;nbsp;&amp;nbsp; I am not an authoritative source but thought I would document a few links since an associate of mine was asking and I was curious.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Resources&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sharepoint Web Parts Overview&amp;nbsp; &lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms432401.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms432401.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Windows SharePoint Services Web Part Infrastructure&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms415560.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms415560.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Walkthrough: Creating a Basic SharePoint Web Part&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms452873.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms452873.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms452873.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Walkthrough: Creating Connectable SharePoint Web Parts&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms469765.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms469765.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Creating Web Parts in Windows SharePoint Services&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms367238.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms367238.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Working with the Windows SharePoint Services WebPart Class&amp;nbsp;&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms473203.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms473203.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Channel 9 Video: Building ASP.NET Web Parts for Windows SharePoint Services 3.0&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://channel9.msdn.com/ShowPost.aspx?PostID=192071"&gt;http://channel9.msdn.com/ShowPost.aspx?PostID=192071&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;15 Seconds: &lt;SPAN class=clsTitle&gt;Building Web Parts for Windows SharePoint Services 3.0&lt;BR&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;A href="http://15seconds.com/issue/060824.htm"&gt;http://15seconds.com/issue/060824.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;15 Seconds: &lt;/STRONG&gt;&lt;SPAN class=clsTitle&gt;&lt;STRONG&gt;Building an ASP.NET 2.0 Web Part for Deployment to WSS V3.0 and MOSS 2007 - Part 1&lt;BR&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;A href="http://15seconds.com/issue/060914.htm"&gt;http://15seconds.com/issue/060914.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Scott Guthrie (MSFT): Writing Custom Web Parts for SharePoint 2007&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://weblogs.asp.net/scottgu/archive/2006/09/02/Writing-Custom-Web-Parts-for-SharePoint-2007.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2006/09/02/Writing-Custom-Web-Parts-for-SharePoint-2007.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Kruger (SharePoint MVP): Great resource link site for almost everything Sharepoint&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://www.sharepointblogs.com/mkruger/archive/2006/05/25/7570.aspx"&gt;http://www.sharepointblogs.com/mkruger/archive/2006/05/25/7570.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If anyone has any great resources on comparisons between the two let me know I would be interested ...&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1775172" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx">Internet Explorer</category><category domain="http://blogs.msdn.com/mab/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>Sending Excel 97/XP/2000/2003/2007 Output from ASP.NET 2.0</title><link>http://blogs.msdn.com/mab/archive/2007/02/20/sending-excel-97-xp-2000-2003-2007-output-from-asp-net.aspx</link><pubDate>Tue, 20 Feb 2007 18:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1727290</guid><dc:creator>mab</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/mab/comments/1727290.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mab/commentrss.aspx?PostID=1727290</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mab/rsscomments.aspx?PostID=1727290</wfw:comment><description>&lt;P&gt;I know there are several articles on the internet describing varous methods to send excel output from ASP.net.&amp;nbsp;&amp;nbsp; Additional, there are many great third party tools as well.&amp;nbsp;&amp;nbsp; I needed to do something simple and lightweight so I expanded on some examples.&amp;nbsp;&amp;nbsp; I needed to do some formating and embed and image.&amp;nbsp;&amp;nbsp; But first there is some setup to do.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Setup Web.config to enable XLS to be compiled and executed as ASP.NET code by the runtime&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Under the &amp;lt;system.web&amp;gt; section:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;compilation&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;debug&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;buildProviders&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;add&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;extension&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;.xls&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;type&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;System.Web.Compilation.PageBuildProvider&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;buildProviders&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;compilation&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;httpHandlers&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;add&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;verb&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;*&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;path&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;*.xls&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;type&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;System.Web.UI.PageHandlerFactory&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;validate&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;/&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;httpHandlers&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;STRONG&gt;Create Excel Output page&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add a web form name ExcelOut.aspx&lt;/LI&gt;
&lt;LI&gt;Remove&amp;nbsp;all html code, just leave the &amp;lt;@ Page ...&amp;gt; directive line&lt;/LI&gt;
&lt;LI&gt;In code behind add the following code in the page load event (please note that html generated is incomplete and is only to show as a sample, please follow all html best practices in a production envrionment)&lt;/LI&gt;&lt;/UL&gt;&lt;FONT size=2&gt;
&lt;P&gt;Response.Clear();&lt;BR&gt;Response.Buffer = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;Response.ContentType = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"application/vnd.ms-excel"&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;Response.Charset = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.EnableViewState = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;System.IO.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;StringWriter&lt;/FONT&gt;&lt;FONT size=2&gt; ExcelStringWriter = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; System.IO.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;StringWriter&lt;/FONT&gt;&lt;FONT size=2&gt;();&lt;BR&gt;System.Web.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;HtmlTextWriter&lt;/FONT&gt;&lt;FONT size=2&gt; oHtmlTextWriter = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; System.Web.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;HtmlTextWriter&lt;/FONT&gt;&lt;FONT size=2&gt;(ExcelStringWriter);&lt;BR&gt;ExcelStringWriter.Write(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"&amp;lt;table border=1&amp;gt;&amp;lt;tr&amp;gt;"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;ExcelStringWriter.Write(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;blah&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;ExcelStringWriter.Write(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"&amp;lt;td width=\"100\"&amp;gt;&amp;lt;img src=\"http://search.msdn.microsoft.com/search/masterpages/items/msdn.jpg\" /&amp;gt;&amp;lt;/td&amp;gt;"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;ExcelStringWriter.Write(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"&amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;&amp;lt;td style=\"mso-number-format: _(&amp;amp;quot;$&amp;amp;quot;* #,##0.00_);_(&amp;amp;quot;$&amp;amp;quot;* \\(#,##0.00\\);_(&amp;amp;quot;$&amp;amp;quot;* &amp;amp;quot;-&amp;amp;quot;??_);_(@_)\"&amp;gt;5000&amp;lt;/td&amp;gt;"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;ExcelStringWriter.Write(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;Response.Write(ExcelStringWriter.ToString());&lt;BR&gt;Response.End();&lt;/P&gt;&lt;/FONT&gt;&lt;STRONG&gt;
&lt;P&gt;&lt;STRONG&gt;Create a web form then rename to XLS extension&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Create the page to call ExcelOut&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add a new web&amp;nbsp;page called TestExcel.aspx&lt;/LI&gt;
&lt;LI&gt;Add a hyperlink in the page like &lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;a&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;href&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="Excelout.xls"&amp;gt;&lt;/FONT&gt;&lt;FONT size=2&gt;Excel output&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;a&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Compile and run and you should something similar to ...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Even though the example below is an HTML table please note that the output is in excel and each item is in a excel cell.&amp;nbsp; The "blah" is in cell A1 with font style of bold,&amp;nbsp; "1" is in cell c1, "5000" is in cell d1 with a format on the cell as "$#,##0.00".&lt;/P&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=""&gt;&lt;B&gt;blah&lt;/B&gt;&lt;/TD&gt;
&lt;TD class="" width=100&gt;&lt;IMG src="http://search.msdn.microsoft.com/search/masterpages/items/msdn.jpg" mce_src="http://search.msdn.microsoft.com/search/masterpages/items/msdn.jpg"&gt;&lt;/TD&gt;
&lt;TD class=""&gt;1&lt;/TD&gt;
&lt;TD class="" style="mso-number-format: _('$'* #,##0.00_)"&gt;$5,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;This is just an example how to export to Excel from ASP.NET using a simple html snippet that includes images and text formatting.&amp;nbsp;&amp;nbsp; Let me know what you think or any code improvements.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1727290" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx">Internet Explorer</category><category domain="http://blogs.msdn.com/mab/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://blogs.msdn.com/mab/archive/tags/Excel/default.aspx">Excel</category></item><item><title>Problem (Bug) with IE7 Beta and VS2005 Build Style (CSS) Builder</title><link>http://blogs.msdn.com/mab/archive/2006/03/26/561316.aspx</link><pubDate>Sun, 26 Mar 2006 17:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:561316</guid><dc:creator>mab</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/mab/comments/561316.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mab/commentrss.aspx?PostID=561316</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mab/rsscomments.aspx?PostID=561316</wfw:comment><description>&lt;P&gt;For those running Visual Studio 2005 (VS2005) along side Internet Explorer 7 (IE7) Beta&amp;nbsp;you may have noticed that the VS2005 CSS editor pops up then disappears immediately.&amp;nbsp; You can reproduce by right click on a style in a CSS file and choose "Build Style".&amp;nbsp;&amp;nbsp; As with any Beta release challenges and compatibilities will arise.&amp;nbsp;&amp;nbsp; The product teams are aware of the issue and are working on it for the final release as indicated here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=257535&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=257535&amp;amp;SiteID=1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As the information states you can workaround the issue by editing the registry (standard disclaimer for editing registry-backup machine, do with caution).&amp;nbsp; There is a work around available for those willing to play with their registry:&lt;BR&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open Registry Editor (Start/Run/RegEdit)&lt;/LI&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;HKLM\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Create a&amp;nbsp;key if none exists for &lt;STRONG&gt;FEATURE_CSS_DATA_RESPECTS_XSS_ZONE_SETTING_KB912120&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Create a DWORD entry in &lt;STRONG&gt;HKLM\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_CSS_DATA_RESPECTS_XSS_ZONE_SETTING_KB912120&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Enter for name: &lt;STRONG&gt;devenv.exe&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;It should automatically default to a value of 0 (otherwise change it)&lt;/LI&gt;
&lt;LI&gt;Shutdown all IE7 and VS2005 programs&lt;/LI&gt;
&lt;LI&gt;Start VS2005 and it should now work&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;I hope this helps ...&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=561316" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx">Internet Explorer</category></item></channel></rss>