<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quarksoft\&#039;s Notes &#187; Programming</title>
	<atom:link href="http://blog.quarksoft.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.quarksoft.com</link>
	<description>Just another Usefulnotes.com weblog</description>
	<lastBuildDate>Wed, 03 Mar 2010 16:07:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Custom Parameters with ObjectDataSource and SqlDataSource</title>
		<link>http://blog.quarksoft.com/2009/11/23/custom-parameters-with-objectdatasource-and-sqldatasource/</link>
		<comments>http://blog.quarksoft.com/2009/11/23/custom-parameters-with-objectdatasource-and-sqldatasource/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 11:16:04 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/?p=102</guid>
		<description><![CDATA[Found a decent article about custom parameters for data sources in ASP.NET.  It was written by Eilon Lipton who has been on the ASP.NET team for quite a while at Microsoft.  The article discuss how to insert your own custom parameters and has easy examples and a good explanation.]]></description>
			<content:encoded><![CDATA[<p>Found a decent article about custom parameters for data sources in ASP.NET.  It was written by Eilon Lipton who has been on the ASP.NET team for quite a while at Microsoft.  The article discuss how to insert your own <a href="http://www.leftslipper.com/ShowFaq.aspx?FaqId=11">custom parameters</a> and has easy examples and a good explanation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2009/11/23/custom-parameters-with-objectdatasource-and-sqldatasource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GridView with DropDownList &#8211; Server tag is not well formed.</title>
		<link>http://blog.quarksoft.com/2009/07/09/gridview-with-dropdownlist-server-tag-is-not-well-formed/</link>
		<comments>http://blog.quarksoft.com/2009/07/09/gridview-with-dropdownlist-server-tag-is-not-well-formed/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 19:34:38 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[David Finkelstein]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[DropDownList]]></category>
		<category><![CDATA[GridView]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/?p=77</guid>
		<description><![CDATA[Ran across an issue today when trying to get my DropDownList embedded within a GridView.   Here is an extract of the code (the error is in the red text): &#60;ItemTemplate&#62;   &#60;asp:DropDownList ID="ddlMaker" runat="server" DataSourceID="odsMakers" DataTextField="makerName" SelectedValue="&#60;%#Bind("MakerID") %&#62;"   DataValueField="makerID"&#62;   &#60;/asp:DropDownList&#62; &#60;/ItemTemplate&#62; When I compiled I received an error &#8220;The server tag is not [...]]]></description>
			<content:encoded><![CDATA[<p>Ran across an issue today when trying to get my DropDownList embedded within a GridView.   Here is an extract of the code (the error is in the red text):</p>
<pre>
&lt;ItemTemplate&gt;
  &lt;asp:DropDownList
        ID="ddlMaker"
        runat="server"
        DataSourceID="odsMakers"
        DataTextField="makerName"
<span style="color: #ff0000"><strong>        SelectedValue="&lt;%#Bind("MakerID") %&gt;"</strong></span>
        DataValueField="makerID"&gt;
  &lt;/asp:DropDownList&gt;
&lt;/ItemTemplate&gt;
</pre>
<p>When I compiled I received an error &#8220;The server tag is not well formed.&#8221;</p>
<p>After a bit of trial and error I realized it was because there were quotes nested within quotes.  To make this work all that had to be done was to change the outside double quotes on the SelectedValue parameter to be single quotes as shown below.</p>
<pre>&lt;ItemTemplate&gt;
  &lt;asp:DropDownList
        ID="ddlMaker"
        runat="server"
        DataSourceID="odsMakers"
        DataTextField="makerName"
<span style="color: #ff0000"><strong>        SelectedValue='&lt;%#Bind("MakerID") %&gt;'</strong></span>
        DataValueField="makerID"&gt;
  &lt;/asp:DropDownList&gt;
&lt;/ItemTemplate&gt;</pre>
<p>Hope I saved someone a bunch of wasted time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2009/07/09/gridview-with-dropdownlist-server-tag-is-not-well-formed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET AJAX Control Toolkit Samples</title>
		<link>http://blog.quarksoft.com/2009/03/19/aspnet-ajax-control-toolkit-samples/</link>
		<comments>http://blog.quarksoft.com/2009/03/19/aspnet-ajax-control-toolkit-samples/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 15:03:40 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[David Finkelstein]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[quarksoft]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/2009/03/19/aspnet-ajax-control-toolkit-samples/</guid>
		<description><![CDATA[Most of you probably have already experimented with the Control Toolkit, but just in case you never ran across it, take a look at these Toolkit samples If you have any questions about them, drop me a comment here.]]></description>
			<content:encoded><![CDATA[<p>Most of you probably have already experimented with the Control Toolkit, but just in case you never ran across it, take a look at these <a href="http://www.asp.net/AJAX/AjaxControlToolkit/samples/" target="_blank">Toolkit samples</a></p>
<p>If you have any questions about them, drop me a comment here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2009/03/19/aspnet-ajax-control-toolkit-samples/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful way to reformat an ASP.NET File Upload control</title>
		<link>http://blog.quarksoft.com/2009/01/15/found-a-useful-way-to-reformat-an-aspnet-file-upload-control/</link>
		<comments>http://blog.quarksoft.com/2009/01/15/found-a-useful-way-to-reformat-an-aspnet-file-upload-control/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 18:55:06 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[asp.net file upload]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/2009/01/15/found-a-useful-way-to-reformat-an-aspnet-file-upload-control/</guid>
		<description><![CDATA[The guys over at QuirksMode.org have come up with an interesting way to get around the default styling of a File Upload control See the details here: http://www.quirksmode.org/dom/inputfile.html]]></description>
			<content:encoded><![CDATA[<p>The guys over at QuirksMode.org have come up with an interesting way to get around the default styling of a File Upload control  See the details here:</p>
<p>http://www.quirksmode.org/dom/inputfile.html</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2009/01/15/found-a-useful-way-to-reformat-an-aspnet-file-upload-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So what do you do with all those IIS log files?</title>
		<link>http://blog.quarksoft.com/2008/11/19/so-what-do-you-do-with-all-those-iis-log-files/</link>
		<comments>http://blog.quarksoft.com/2008/11/19/so-what-do-you-do-with-all-those-iis-log-files/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 04:12:23 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[IIS Logs]]></category>
		<category><![CDATA[Import]]></category>

		<guid isPermaLink="false">http://quarksoft.wordpress.com/?p=38</guid>
		<description><![CDATA[You are responsible for one or more Windows web servers and you have all these IIS log files that you want to make some sense out of.   If you have some basic SQL skills Microsoft is making available a utility called LogParser which does a great job getting in there and allowing you to query [...]]]></description>
			<content:encoded><![CDATA[<p>You are responsible for one or more Windows web servers and you have all these <a href="http://www.microsoft.com/technet/scriptcenter/tools/logparser/default.mspx" target="_blank">IIS log files</a> that you want to make some sense out of.   If you have some basic SQL skills Microsoft is making available a utility called <a href="http://www.microsoft.com/technet/scriptcenter/tools/logparser/default.mspx" target="_blank">LogParser</a> which does a great job getting in there and allowing you to query the files directly using some basic SQL syntax.   The feature I like the best is the ability to convert the data into a SQL table for manipulation via T-SQL.</p>
<p>Here is a sample of what I did (this would all go on a single line)</p>
<p>c:\&#8221;program files&#8221;\&#8221;log parser 2.2&#8243;\LogParser -iCheckPoint:myCheckPoint.lpc -o:SQL -server:localhost -database:IISLogs -createtable:ON &#8220;SELECT * FROM ex0810*.log TO IISLogs&#8221;</p>
<p>This short command line will read in all log files that start with ex0810 and import them into a table called IISLogs.  It will also create a checkpoint file so that if you run the command again it will not import records that have already been imported.</p>
<p>How cool is that?</p>
<p>Once all the importing is done you can leverage the SQL tables using whatever methods you need to.</p>
<p>If you need any help with stuff, send us a note at support at quarksoft.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2008/11/19/so-what-do-you-do-with-all-those-iis-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook 2007 Preview Pane made useful&#8230;</title>
		<link>http://blog.quarksoft.com/2008/10/28/outlook-2007-preview-pane-made-useful/</link>
		<comments>http://blog.quarksoft.com/2008/10/28/outlook-2007-preview-pane-made-useful/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 13:50:19 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Outlook 2007]]></category>
		<category><![CDATA[Outlook Preview Handler]]></category>
		<category><![CDATA[Outlook Preview Pane]]></category>
		<category><![CDATA[Preview Handler]]></category>

		<guid isPermaLink="false">http://quarksoft.wordpress.com/?p=33</guid>
		<description><![CDATA[I finally had upgraded to Outlook 2007 about a month ago and one of the features I found myself using a lot was the Preview feature for attachments. It was great for the PDF and the typical office documents, but there were no preview handlers for files such as WAV. I have a VOIP line [...]]]></description>
			<content:encoded><![CDATA[<p>I finally had upgraded to Outlook 2007 about a month ago and one of the features I found myself using a lot was the Preview feature for attachments.  It was great for the PDF and the typical office documents, but there were no preview handlers for files such as WAV.  I have a VOIP line that emails me the voice mail messages that have been left so having a WAV previewer would be really useful for me.</p>
<p>During my search for such a feature I ran across a great utility from Gil Azar (and in his post gives credit to lots of others for their help).  You can download the ultimate <a href="http://www.azarfamily.org/previewhandlersforwindowsxp" target="_blank">Outlook 2007 preview handler</a> from his site.</p>
<p>If you are interested in some of the <a href="http://msdn.microsoft.com/en-us/magazine/cc163487.aspx" target="_blank">technical details</a> Gil discusses them on his page and provides some really great links.</p>
<p>I&#8217;ve included parts of Gil&#8217;s original post just in case his site disappears one day.</p>
<p>A self-extracting installer, which silently installs Stephen Toub&#8217;s MSDN Magazine Managed Preview Handler Framework and Gil&#8217;s small addition, can be downloaded <a href="http://quarksoft.com/files/PrevHandlerPack.exe">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2008/10/28/outlook-2007-preview-pane-made-useful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Session State in SQL Server</title>
		<link>http://blog.quarksoft.com/2008/06/13/aspnet-session-state-in-sql-server/</link>
		<comments>http://blog.quarksoft.com/2008/06/13/aspnet-session-state-in-sql-server/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 21:05:26 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://quarksoft.wordpress.com/?p=21</guid>
		<description><![CDATA[There are lots of places to get information about putting the Session State into a SQL Server database instead of in-memory. The information I have found most useful is the utility aspnet_regsql.exe. It performs a bunch of different tasks for ASP.NET and interaction with SQL Server and the membership interfaces. For example if you want [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of places to get information about putting the Session State into a SQL Server database instead of in-memory.  The information I have found most useful is the utility aspnet_regsql.exe.  It performs a bunch of different tasks for ASP.NET and interaction with SQL Server and the membership interfaces.</p>
<p>For example if you want to get session persisted across SQL Server reboots you can issue this command:</p>
<blockquote><p>aspnet_regsql.exe -ssadd -sstype p -E -S &lt;servername&gt;</p></blockquote>
<p>The sstype p is the option that allows for the state to be persisted.  You can execute aspnet_regsql.exe -?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2008/06/13/aspnet-session-state-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resetting the IDENTITY counter in SQL Server T-SQL</title>
		<link>http://blog.quarksoft.com/2008/05/13/resetting-the-identity-counter-in-sql-server-t-sql/</link>
		<comments>http://blog.quarksoft.com/2008/05/13/resetting-the-identity-counter-in-sql-server-t-sql/#comments</comments>
		<pubDate>Tue, 13 May 2008 18:35:00 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[quarksoft]]></category>

		<guid isPermaLink="false">http://quarksoft.wordpress.com/?p=19</guid>
		<description><![CDATA[You&#8217;ve been there before.  You are busily testing your import routines and running up the Identity column in your main import table.  Before you know it the value is in the multi-millions and you just want to reset it back to 1.  The way to accomplish this is to use the DBCC CHECKIDENT command. For [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve been there before.  You are busily testing your import routines and running up the Identity column in your main import table.  Before you know it the value is in the multi-millions and you just want to reset it back to 1. </p>
<p><span style="color:#000000">The way to accomplish this is to use the DBCC CHECKIDENT command.</span></p>
<p>For example:</p>
<pre style="padding-left:30px">DBCC CHECKIDENT (SalesForce, reseed, 0)</pre>
<p>This assumes your table is called SalesForce and you want to start the numbering at 1.  If you wanted to start the number at 2000 you can substitute 0 with 1999.  There has been some discussion that has said if the table never had records added to it the reseed value itself will be used instead of the reseed + 1 value.  You should not need to use this statement for a &#8220;new&#8221; table.</p>
<p>Credit for this post is given to Pinal Dave over at <a href="http://sqlauthority.com/">http://sqlauthority.com/</a>.  The specific post this I am referring to is the one at this <a href="http://blog.sqlauthority.com/2007/03/15/sql-server-dbcc-reseed-table-identity-value-reset-table-identity/">page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2008/05/13/resetting-the-identity-counter-in-sql-server-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Helping block spam with T-SQL</title>
		<link>http://blog.quarksoft.com/2008/05/01/helping-block-spam-with-t-sql/</link>
		<comments>http://blog.quarksoft.com/2008/05/01/helping-block-spam-with-t-sql/#comments</comments>
		<pubDate>Thu, 01 May 2008 13:57:41 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[phil factor]]></category>
		<category><![CDATA[quarksoft]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://quarksoft.wordpress.com/?p=18</guid>
		<description><![CDATA[Found a great article on blocking spam using T-SQL code.  It is especially useful for blog posts and other community related sites that accept user input.  Could even be used on form comments to help block all those guys that submit endless forms on your sites.  ]]></description>
			<content:encoded><![CDATA[<p>Found a great article on <a href="http://www.simple-talk.com/community/blogs/philfactor/archive/2008/04/11/47264.aspx">blocking spam using T-SQL code</a>.  It is especially useful for blog posts and other community related sites that accept user input.  Could even be used on form comments to help block all those guys that submit endless forms on your sites.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2008/05/01/helping-block-spam-with-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling buttons on click for ASP.NET forms</title>
		<link>http://blog.quarksoft.com/2008/01/31/disabling-buttons-on-click-for-aspnet-forms/</link>
		<comments>http://blog.quarksoft.com/2008/01/31/disabling-buttons-on-click-for-aspnet-forms/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 15:10:39 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://quarksoft.wordpress.com/?p=15</guid>
		<description><![CDATA[Found some great tips in the simple-talk.com blog about disabling buttons on asp.net forms. If you ever created a form and had your users click on the submit button multiple times this is the code you have been looking for.  Be sure to check out Robyn Page&#8217;s comments for a method to block the whole [...]]]></description>
			<content:encoded><![CDATA[<p>Found some great tips in the <a href="http://www.simple-talk.com/community/blogs/damon_armstrong/archive/2007/12/20/Disable_a_ASP_NET_Button_When_Clicked.aspx">simple-talk.com</a> blog about disabling buttons on asp.net forms.</p>
<p>If you ever created a form and had your users click on the submit button multiple times this is the code you have been looking for.  Be sure to check out Robyn Page&#8217;s comments for a method to block the whole form during the form submit as well.</p>
<p>Complete details can be found <a href="http://www.simple-talk.com/community/blogs/damon_armstrong/archive/2007/12/20/Disable_a_ASP_NET_Button_When_Clicked.aspx">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2008/01/31/disabling-buttons-on-click-for-aspnet-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
