<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicio.us/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>Stephen Wright : BLL</title><link>http://devlicio.us/blogs/steve_wright/archive/tags/BLL/default.aspx</link><description>Tags: BLL</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Scheduling the Import of data with ASP.NET</title><link>http://devlicio.us/blogs/steve_wright/archive/2006/10/03/Importing-your-Business-Data-to-ASP.NET.aspx</link><pubDate>Tue, 03 Oct 2006 07:18:00 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:175</guid><dc:creator>Stephen Wright</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/steve_wright/rsscomments.aspx?PostID=175</wfw:commentRss><comments>http://devlicio.us/blogs/steve_wright/archive/2006/10/03/Importing-your-Business-Data-to-ASP.NET.aspx#comments</comments><description>&lt;p&gt;Most enterprise ASP.NET web applications have one thing in common: Data Imports.&amp;nbsp; Whether it is users, locations or transactions, 95%* of the applications that I&amp;#39;ve built for large corporations require some external data.&amp;nbsp; Handling this in ASP.NET has always been troublesome for me, so I thought I&amp;#39;d share my method with you.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In the past, I&amp;#39;ve used Andy Brummer&amp;#39;s scheduled timer to execute my scheduled tasks (&lt;a href="http://www.codeproject.com/dotnet/ABTransClockArticle.asp" target="_blank"&gt;http://www.codeproject.com/dotnet/ABTransClockArticle.asp&lt;/a&gt;) in conjunction with Paul Wilson&amp;#39;s keep alive (&lt;a href="http://authors.aspalliance.com/paulwilson/Articles/?id=12" target="_blank"&gt;http://authors.aspalliance.com/paulwilson/Articles/?id=12&lt;/a&gt;).&amp;nbsp; This has been the best way that I&amp;#39;ve been able to make sure that the code will execute on the proper schedules. &lt;/p&gt;&lt;p&gt;Basically, a &amp;quot;timer&amp;quot; thread is executed when the application starts and is checked every millisecond.&amp;nbsp; If the current &amp;quot;tick&amp;quot; is the same as the set scheduled total ticks, then it will execute the import. &lt;br /&gt;&lt;/p&gt;I&amp;#39;ve been happy with this method and haven&amp;#39;t run into any problems with it.&lt;br /&gt;&lt;p&gt;&lt;em&gt;* estimated guess, I haven&amp;#39;t done any in depth studies on it, but I&amp;#39;ve worked on enough applications to know that it&amp;#39;s pretty much everyone.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=175" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/steve_wright/archive/tags/BLL/default.aspx">BLL</category></item></channel></rss>