Archive

Archive for the ‘ASP.NET’ Category

Horizontal Scroll Bars on IFrame doesn’t wack me anymore!

October 10th, 2004 Ali Moeen 18 comments

I had hard time trying to remove horizontal scrollbar from IFrames that I had on my first page. Then, I found this article on Macromedia site from Jolantha Belik. It explains possible reasons for IFrame’s redundant horizontal scrollbar and their remedies.

Categories: ASP.NET Tags:

A sharing violation occured while accessing C:\Inetpub\wwwroot\…

July 7th, 2003 Ali Moeen No comments

When ASP.NET encounters an error and stop during processing a page that opens a data file, any attempt to edit the file pops up the above error message! That means some process have the data file open and doesn’t allow you to touch it.


The solution is murdering ASP.NET worker process, aspnet_wp.exe, through Windows Task Manager. The worker process starts again upon next page request; however the application will be restarted. That is all session variables will be lost!

April 2007 Update: Today I use Ulocker to take care of all annoying sharing violation pop-ups!

Categories: ASP.NET Tags:

I made the smallest RSS reader ever!

March 17th, 2003 Ali Moeen No comments

Perhaps the RSS reader that I use for my website is one of the smallest one. I used ASP.NET XML server control to merge RSS XML data with an XSL file. It works fine. The only challenge that I had was <xsl:value-of select="description"/> translates HTML tags to their escape code, so < becomes &lt; and > becomes &gt; ! And we see the actual html tags on the rendered data. The solution is using disable-output-escaping attribute so the value-of tag becomes like this:


<xsl:value-of select="description" disable-output-escaping="yes"></xsl:value-of>


The download is here:


RSS.zip


Here is an example shows the querystring names:


rss.aspx?RSS=http://moeen.com/blog/Rss.aspx&XSL=RSSBlog.xsl


There is no error handling. Shame!

Categories: ASP.NET, XML Tags: