<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My Web Development Blog</title>
	<atom:link href="http://nycharles.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nycharles.wordpress.com</link>
	<description>ASP.NET Web Development Blog</description>
	<lastBuildDate>Fri, 17 Apr 2009 15:17:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nycharles.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My Web Development Blog</title>
		<link>http://nycharles.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nycharles.wordpress.com/osd.xml" title="My Web Development Blog" />
	<atom:link rel='hub' href='http://nycharles.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SQL Server Stored Procedure to generate different types of reference number</title>
		<link>http://nycharles.wordpress.com/2009/02/17/sql-server-stored-procedure-to-generate-reference-number/</link>
		<comments>http://nycharles.wordpress.com/2009/02/17/sql-server-stored-procedure-to-generate-reference-number/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 20:04:18 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=226</guid>
		<description><![CDATA[At work, there is a website that we need to generate several types of unique reference numbers. Numbers such as A000013579 for answer id and Q000024680 for question id. To generate numbers like that, we created a stored procedure. I can see that we can use this method in other websites as well. First, we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=226&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At work, there is a website that we need to generate several types of unique reference numbers. Numbers such as A000013579 for answer id and Q000024680 for question id. To generate numbers like that, we created a stored procedure. I can see that we can use this method in other websites as well.</p>
<p>First, we created a table to save the last used number. Let&#8217;s call it [SequenceTable]. In this table, we need 4 columns: [Type],[Prefix],[LastNumber] and [Length].<br />
values for [Type] column could be: &#8220;Answer ID&#8221;<br />
values for [Prefix] column could be: &#8220;A&#8221;<br />
values for [LastNumber] column could be: 13579<br />
values for [Length] column could be: 10</p>
<p>Then, we created a Stored Procedure that take value for [Type]. Look for the value of [LastNumber] where [Type] is the input. Fill 0&#8242;s using the REPLICATE function. Increase the value of [LastNumber] by 1 and update it in the table. Append prefix and return it as an output. The stored procedure is defined as follow:</p>
<pre>
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER PROCEDURE [dbo].[sp_GetNextReferenceID]
  @Type as varchar(25),
  @ID varchar(20) OUTPUT
AS
DECLARE
  @Prefix VARCHAR(10),
  @LastNumber int,
  @Length smallint,
  @charLastNumber as varchar(15)
BEGIN
  if exists (Select * From SEQUENCETABLE Where Type = @Type)
    begin
      Select @prefix = Prefix,
          @LastNumber = LastNumber,
          @Length = Length
      From SEQUENCETABLE Where Type = @Type

      Select @LastNumber = @LastNumber + 1
      Update SEQUENCETABLE Set LastNumber = @LastNumber Where Type = @Type

      -- To Fill 0 in between with the REPLICATE function
      Select @charLastNumber = REPLICATE('0',@length - len(@LastNumber) - len(@prefix))
+ cast(@LastNumber as varchar(10))
      Select @ID = @prefix + @charLastNumber
    End
  Else
    Begin
	SELECT @ID = 'INVALID TYPE'
	RAISERROR('Invalid Type',16,1)
    End
END
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=226&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2009/02/17/sql-server-stored-procedure-to-generate-reference-number/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>use coalesce function to concat field values</title>
		<link>http://nycharles.wordpress.com/2009/02/10/use-coalesce-function-to-concat-field-values/</link>
		<comments>http://nycharles.wordpress.com/2009/02/10/use-coalesce-function-to-concat-field-values/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 17:01:09 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=217</guid>
		<description><![CDATA[Problem: I got 3 tables: [Posts],[Tags] and [PostsTags] When the tables join, I got multiple records for each post with distinct tags. I want a table that contains single record for each post with tags concatenated. Solution: In SQL Server 2005, I created a Scalar-valued Function that takes one parameter (the post id). This function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=217&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Problem:</span></strong> I got 3 tables: [Posts],[Tags] and [PostsTags]<br />
When the tables join, I got <strong>multiple</strong> records for each post with distinct tags.<br />
I want a table that contains <strong>single</strong> record for each post with tags concatenated.</p>
<p><strong><span style="text-decoration:underline;">Solution: </span></strong></p>
<ol>
<li>In SQL Server 2005, I created a Scalar-valued Function that takes one parameter (the post id). This function returns concatenated values of the tag name given the post id.</li>
<li>Then I called this function in the Views and Stored Procedure.</li>
<li>The Scalar-valued Function is defined as below:</li>
</ol>
<pre>set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER FUNCTION [dbo].[SVF_TagNameByPostID] (@post_id int)
RETURNS nvarchar(1000)
AS
BEGIN
	DECLARE @Result nvarchar(1000)

	SELECT @Result = COALESCE(@Result + '|', '') +
	CAST(Table_Tags.tag_name AS nvarchar(50))
	FROM Table_Tags INNER JOIN
	Table_PostsTags ON Table_Tags.tag_id = Table_PostsTags.tag_id INNER JOIN
	View_Posts ON Table_PostsTags.post_id = View_Posts.post_id
	WHERE View_Posts.post_id = @post_id

	RETURN @Result
END</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=217&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2009/02/10/use-coalesce-function-to-concat-field-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>DataBinder.Eval function</title>
		<link>http://nycharles.wordpress.com/2009/01/02/databindereval-function/</link>
		<comments>http://nycharles.wordpress.com/2009/01/02/databindereval-function/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 17:03:38 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[ASPX Component]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Data Presentation]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=144</guid>
		<description><![CDATA[I am creating a blog and I need to preserve white space for user comment. So I need to put &#60;pre&#62; tag around the comment content. In ASP.NET, I could do it in the ItemDataBound function and then use the FindControl function and append &#60;pre&#62; tags to the text property of the label. But there [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=144&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am creating a blog and I need to preserve white space for user comment. So I need to put &lt;pre&gt; tag around the comment content. In ASP.NET, I could do it in the ItemDataBound function and then use the FindControl function and append &lt;pre&gt; tags to the text property of the label. But there is a much better and easier way. Use the DataBinder.Eval function like below</p>
<p>&lt;asp:Label ID=&#8221;CommentLabel&#8221; runat=&#8221;server&#8221; Text=&#8217;&lt;%# DataBinder.Eval(Container.DataItem,&#8221;comment_content&#8221;,&#8221;&lt;pre&gt;{0}&lt;/pre&gt;&#8221;) %&gt;&#8217;&gt;&lt;/asp:Label&gt;</p>
<p>In my case, the &#8220;comment_content&#8221; is the name of the field in my table that contains the user htmlencoded content.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=144&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2009/01/02/databindereval-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>Using CSS Friendly Control Adapter to existing project</title>
		<link>http://nycharles.wordpress.com/2008/11/13/using-css-friendly-control-adapter-to-existing-project/</link>
		<comments>http://nycharles.wordpress.com/2008/11/13/using-css-friendly-control-adapter-to-existing-project/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 16:02:34 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[ASPX Component]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Data Presentation]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=139</guid>
		<description><![CDATA[What it is: http://aspnet.4guysfromrolla.com/articles/112906-1.aspx Download and Install: http://www.codeplex.com/cssfriendly 1. Downloading the current release. Go to the Releases tab. You should see three prominent links to files. The zip file contains the source code, the CSSFriendly.dll file contains the compiled source code, and the the CSSFriendlyAdapters.browser file is a configuration file. You only need the dll [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=139&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What it is: http://aspnet.4guysfromrolla.com/articles/112906-1.aspx<br />
Download and Install: http://www.codeplex.com/cssfriendly</p>
<blockquote><p>1. Downloading the current release. Go to the Releases tab. You should see three prominent links to files. The zip file contains the source code, the CSSFriendly.dll file contains the compiled source code, and the the CSSFriendlyAdapters.browser file is a configuration file. You only need the dll and browser files.<br />
2. Add a reference to CSSFriendly.dll. This is typically done by right-clicking your web project, choosing the Add References command, browsing for the CSSFriendly.dll file, and clicking OK.<br />
3. Add the CSSFriendlyAdapters.browser file to the AppBrowsers folder in the root of your web project. If the AppBrowsers folder doesn&#8217;t exist, create it.</p>
<p>Note:<br />
You may notice the autoFormat you selected for your gridview or other controls is not working anymore. You will have to use the cssclass property of the control to specify the style you want.</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=139&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2008/11/13/using-css-friendly-control-adapter-to-existing-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>Escape double quote in C#</title>
		<link>http://nycharles.wordpress.com/2008/11/13/escape-double-quote-in-c/</link>
		<comments>http://nycharles.wordpress.com/2008/11/13/escape-double-quote-in-c/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 15:28:50 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=136</guid>
		<description><![CDATA[If you want to represent a double quote in a string literal, the escape sequence is two double quotes with &#8220;@&#8221; system in the front. string myString = @&#8221;&#60;xml attribute=&#8220;&#8221;my attribute&#8220;&#8221;/&#62;&#8221;;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=136&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to represent a double quote in a string literal, the escape sequence is two double quotes with &#8220;@&#8221; system in the front.</p>
<p><span style="font-family:Courier New;font-size:x-small;">string myString = @&#8221;&lt;xml  attribute=<strong><span style="color:#ff0000;">&#8220;&#8221;</span></strong>my  attribute<strong><span style="color:#ff0000;">&#8220;&#8221;</span></strong>/&gt;&#8221;;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=136&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2008/11/13/escape-double-quote-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>move sql server 2005 database to sql server 2000</title>
		<link>http://nycharles.wordpress.com/2008/11/05/move-sql-server-2005-to-sql-server-2000/</link>
		<comments>http://nycharles.wordpress.com/2008/11/05/move-sql-server-2005-to-sql-server-2000/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 21:21:59 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=130</guid>
		<description><![CDATA[I need to move a database that I created in sql server 2005 express to an old development environment which run sql server 2000. After searching on the web for half hour, I follow the instructions in one of the posts. It works. Below are the steps to do this. How to Downgrade a Database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=130&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span><span style="font-family:Times New Roman;">I need to move a database that I created in sql server 2005 express to an old development environment which run sql server 2000. After searching on the web for half hour, I follow the instructions in one of the posts. It works. Below are the steps to do this. </span></span></p>
<blockquote>
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><strong><span style="text-decoration:underline;"><span style="font-size:16pt;"><span style="font-family:Times New Roman;">How to Downgrade a Database from SQL Server 2005 to SQL  Server 2000</span></span></span></strong></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:Times New Roman;"><strong><em><span style="text-decoration:underline;"><span style="font-size:14pt;">Step  1</span></span></em></strong><em><span style="text-decoration:underline;"><span style="font-size:14pt;"> Generating Scripts for  the Database Elements and Structures</span></span></em></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>1)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Right-click  over the desired Database at 2005, Choose Tasks and the Generate Scripts  (Option).</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>2)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>At the  pop-up Dialog Box click at the <em>Script All Objects in the selected  Databases</em> check box, to activate it and then Click the Next  Button.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>3)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Set the  following Elements to the following Values</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>a.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script  Collation , set to TRUE</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>b.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script  Database Create, set to TRUE</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>c.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script of  SQL Version, set to SQL SERVER 2000</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>d.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script  foreign keys, set to FALSE</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>e.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script  Triggers, set to FALSE</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 .25in;"><span><span style="font-family:Times New Roman;"><span> </span>Then Hit the Next button</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>4)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Select the  way the generated scripts should be saved (There are different selections. The  most common one is Clipboard). Finally click the Next button till you reach the  end.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>5)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Click  Finish</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;">After completing this procedure, we have to move to the  SQL SERVER 2000 environment. Here, by using the Query Analyzer, we will have to  run the scripts that were generated using the master database. Copy and Paste  the script at the Query Analyzer and run it. After that the Structure of the  Database will be created.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;">Be careful, the SQL Server 2005 Edition inserts the Views  in a random place through the script. Therefore, all the scripts that are  referred to the Views MUST be moved to the end of the script. If the Query  Analyzer shows some errors do not be bothered. Delete all the elements created  from the script and after you fix the code run it again.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:Times New Roman;"><strong><em><span style="text-decoration:underline;"><span style="font-size:14pt;">Step2 </span></span></em></strong><em><span style="text-decoration:underline;"><span style="font-size:14pt;">Moving the data from 2005  to 2000</span></span></em></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>1)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>After  completing the previous step successfully, moving the data follows. Right-click  at the 2005 database you used to run the previous step and select Tasks and then  choose the Export Data (option).</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>2)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>From the  pop-up Dialog Box, select the Source Db and Click at the Next  Button.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>3)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>At the next  step you will have to choose the destination server and the destination Database  for the Data to be exported. Then Click Next.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>4)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>A List of  all the Source Database’s Elements will appear in the screen. Select one by one  all the Elements you wish to move and for each one click at the button Edit  Mappings (Located at the bottom right corner of the Dialog Box just under the  Elements list). A new Dialog box will pop-up. Select the Delete rows in  Destination Tables option and activate the Enable Identity Insert Option.  (Remember to repeat this action for each of the selected Element from the list  that will be moved.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:Times New Roman;"><strong><span style="text-decoration:underline;"><span>CAUTION!!!</span></span></strong><span> A malfunction  of the SQL Server 2005 has been found. Not sure why, after multiple tries I have  observed that when I tried to move more than twelve Elements at once, the Export  Data Wizard of SQL Server 2005 seemed to disable the Enable Identity Insert  Option that was activated over the Edit Mappings Dialog Box. But if the number  of the selected Elements is smaller than 12 no problem seemed to  appear.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:Times New Roman;"><strong><em><span style="text-decoration:underline;"><span style="font-size:14pt;">Step  3</span></span></em></strong><em><span style="text-decoration:underline;"><span style="font-size:14pt;"> Generating Scripts for  the Database Foreign Keys and Triggers</span></span></em></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;">Finally, to successfully finish the downgrade of the  Database, the Triggers and the Foreign Keys of the DB must be produced. The  procedure that should be followed is the one stated next:</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>1)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Right-Click  at the SQL 2005 Database and Select from Tasks Menu the Generate Scripts  Option.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>2)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Using the  pop-up Dialog Box make sure that the check box <em>Script All Objects in the  selected Databases</em> is not enabled and hit the Next Button.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>3)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Set all the  Elements on the List to a False Value except the ones that  follow:</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>a.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Include IF  NOT EXISTS , set to TRUE</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>b.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script  Owner, set to TRUE</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>c.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script of  SQL Version, set to SQL SERVER 2000</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>d.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script  foreign keys, set to TRUE</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 1in;"><span style="font-family:Times New Roman;"><span><span>e.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Script  Triggers, set to TRUE</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 .25in;"><span><span style="font-family:Times New Roman;"><span> </span>Then Hit the Next button </span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>4)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>After  finishing reading the Elements of the Database, a new list will appear at the  Dialog Box. Make sure that you select ONLY THE TABLES of the Database and hit  the Next Button.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>5)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>At the  screen that follows hit the Select All button and the Next.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>6)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Select the  way the generated scripts should be saved (There are different selections. The  most common one is Clipboard). Finally click the Next button till you reach the  end.</span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-family:Times New Roman;"><span><span>7)<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span>Click  Finish Button.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;">After completing this procedure, we have to move to the  SQL SERVER 2000 environment. Here, by using the Query Analyzer, we will have to  run the scripts that were generated using the master database. Copy and Paste  the script at the Query Analyzer and run it. After that the Foreign Keys and the  Triggers of the Database will be created.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;">After these steps the database should be fully functional  under the SQL Server 2000 edition.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;">
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="text-decoration:underline;">Other Thoughts:</span></strong><br />
The keyword in the store procedures needs to be changed. For example, the transaction keywords is different in version 2005 from version 2000.</p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-family:Times New Roman;"><br />
</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><strong><span style="text-decoration:underline;">Source:</span></strong></p>
<p>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=722132&#038;SiteID=1</span></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=130&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2008/11/05/move-sql-server-2005-to-sql-server-2000/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>Ways to pass data for asp.net website</title>
		<link>http://nycharles.wordpress.com/2008/10/30/ways-to-pass-data-for-aspnet-website/</link>
		<comments>http://nycharles.wordpress.com/2008/10/30/ways-to-pass-data-for-aspnet-website/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 17:24:22 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Data Presentation]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=128</guid>
		<description><![CDATA[ViewState &#8211; Maintain data for postback for a page Context items collection &#8211; Simple data pass from 1 page to another. (common use for server farm) QueryString &#8211; put value in the URL Session &#8211; Server store value per user (example: user id) Application &#8211; For the whole web application Cache &#8211; Server storing data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=128&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li>ViewState &#8211; Maintain data for postback for a page</li>
<li>Context items collection &#8211; Simple data pass from 1 page to another. (common use for server farm)</li>
<li>QueryString &#8211; put value in the URL</li>
<li>Session &#8211; Server store value per user (example: user id)</li>
<li>Application &#8211; For the whole web application</li>
<li>Cache &#8211; Server storing data among all users (example: the product table)</li>
<li>Cookie &#8211; Store information on the user&#8217;s pc for a long time (example: track first time visit)</li>
<li>PreviousPage object</li>
</ol>
<p>&#8230;and others</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=128&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2008/10/30/ways-to-pass-data-for-aspnet-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>Wilco Syntax Highlighter for ASP.NET Tutorial</title>
		<link>http://nycharles.wordpress.com/2008/10/15/wilco-syntax-highlighter-for-aspnet-tutorial/</link>
		<comments>http://nycharles.wordpress.com/2008/10/15/wilco-syntax-highlighter-for-aspnet-tutorial/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 14:05:53 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[Data Presentation]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=113</guid>
		<description><![CDATA[I am looking for a good syntax highlighter for my new site. I was searching the forum on ASP.NET and eventually stumble upon Wilco&#8217;s syntax highlighter. It is open source which gives you the power to configure it. That site lacks a good tutorial and no examples are provided, so it took me a while [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=113&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am looking for a good syntax highlighter for my new site. I was searching the forum on ASP.NET and eventually stumble upon <a href="http://www.wilcob.com/Wilco/Toolbox/SyntaxHighlighter.aspx">Wilco&#8217;s syntax highlighter</a>. It is open source which gives you the power to configure it. That site lacks a good tutorial and no examples are provided, so it took me a while to figure out how to customized it. (maybe because I&#8217;m still a newbie)</p>
<p>First, open and build Wilco&#8217;s project in Visual Studio. Then go to &#8220;Wilco.SyntaxHighlighting\bin\Debug&#8221; folder to get copy the compiled dll file and paste into the bin folder of your other project. Add reference and browse the dll file. Add it to the toolbox by right clicking the area in the toolbox section, browse the dll file again. You should see 4 more controls in the toolbox. Now just drag and drop it into your web page. Select the mode, language and text.</p>
<p>To customize the look, you can change the style setting in the SyntaxHighlighterTemplates.cs file.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=113&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2008/10/15/wilco-syntax-highlighter-for-aspnet-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>Context.Items vs. ViewState</title>
		<link>http://nycharles.wordpress.com/2008/10/01/contextitems-vs-viewstate/</link>
		<comments>http://nycharles.wordpress.com/2008/10/01/contextitems-vs-viewstate/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 19:18:38 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[Data Presentation]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Context.Items]]></category>
		<category><![CDATA[ViewState]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=104</guid>
		<description><![CDATA[To pass values from one page to another, Context.Items and ViewState are used most often. It is important to keep in mind that values stored in the Context.Items collection only last for the current request. If I were to do a postback on the page, the Context item would be lost. Most of the time [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=104&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To pass values from one page to another, Context.Items and ViewState are used most often.</p>
<p>It is important to keep in mind that values stored in the Context.Items collection only last for the current request. If I were to do a postback on the page, the Context item would be lost. Most of the time this is convienient since we only need to store that value between pages and no longer.</p>
<p>To keep track of values between postback, use ViewState. Unlike Context.Items collection that is used to transfer data from one page to another, ViewState can be only used for the same page. It is useful for postback. Also, Context.Items is used very often in the server farm architecture.</p>
<p>It&#8217;s common to use this in the page_load function of the page. Check out the example below. Note that the IsPostBack condition below. If that is not there, then the postback of the page will read Context.Items(&#8220;id&#8221;) again which will be null. This will cause a problem. That is why it is important to have it there.<br />
<code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)<br />
Dim ProductToShow As Integer<br />
If Not Me.IsPostBack Then<br />
ProductToShow = Context.Items("Id")<br />
Me.ViewState("Id") = ProductToShow<br />
Else<br />
ProductToShow = Me.ViewState.Item("Id")<br />
End If<br />
End Sub</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=104&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2008/10/01/contextitems-vs-viewstate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>
	</item>
		<item>
		<title>Putting corners using a single image with CSS</title>
		<link>http://nycharles.wordpress.com/2008/10/01/putting-corners-using-a-single-image-with-css/</link>
		<comments>http://nycharles.wordpress.com/2008/10/01/putting-corners-using-a-single-image-with-css/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 19:04:53 +0000</pubDate>
		<dc:creator>nycharles</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[background-position]]></category>

		<guid isPermaLink="false">http://nycharles.wordpress.com/?p=105</guid>
		<description><![CDATA[The corner image (26 x 26 pixels) In the CSS file, it only display 13 x 13 pixels of the background image. The background-position property chooses which portion to be displayed.: .box .tl, .box .tr, .box .bl, .box .br {background-image:url(Images/corners.gif); background-repeat:no-repeat; width:13px; height:13px} .box .tl {background-position: left top} .box .tr {background-position: right top} .box .bl [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=105&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li><!--[if gte mso 9]&gt;  Normal 0   false false false         MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--> <!--[if gte mso 10]&gt;--> <!--[endif]--><span style="font-size:12pt;font-family:&quot;">The corner image (26 x 26 pixels)<br />
</span></li>
<p><a href="http://nycharles.files.wordpress.com/2008/10/screenshot.jpg"><img class="alignnone size-full wp-image-106" title="single circle" src="http://nycharles.files.wordpress.com/2008/10/screenshot.jpg?w=417&#038;h=230" alt="" width="417" height="230" /></a></p>
<li>In the CSS file, it only display 13 x 13 pixels of the background image. The background-position property chooses which portion to be displayed.:<br />
<!--[if gte mso 9]&gt;  Normal 0   false false false         MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--> <!--[if gte mso 10]&gt; &lt;!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;">.box</span><span style="font-size:11pt;font-family:&quot;"> <span style="color:maroon;">.tl</span>, <span style="color:maroon;">.box</span> <span style="color:maroon;">.tr</span>, <span style="color:maroon;">.box</span> <span style="color:maroon;">.bl</span>, <span style="color:maroon;">.box</span> <span style="color:maroon;">.br<br />
</span>{<span style="color:red;">background-image</span>:<span style="color:blue;">url(Images/corners.gif)</span>; <span style="color:red;">background-repeat</span>:<span style="color:blue;">no-repeat</span>; <span style="color:red;">width</span>:<span style="color:blue;">13px</span>; <span style="color:red;">height</span>:<span style="color:blue;">13px</span>}<br />
.box</span><span style="font-size:11pt;font-family:&quot;"> <span style="color:maroon;">.tl</span> {<span style="color:red;">background-position</span>: <span style="color:blue;">left</span> <span style="color:blue;">top</span>}<br />
.box</span><span style="font-size:11pt;font-family:&quot;"> <span style="color:maroon;">.tr</span> {<span style="color:red;">background-position</span>: <span style="color:blue;">right</span> <span style="color:blue;">top</span>}<br />
.box</span><span style="font-size:11pt;font-family:&quot;"> <span style="color:maroon;">.bl</span> {<span style="color:red;">background-position</span>: <span style="color:blue;">left</span> <span style="color:blue;">bottom</span>}<br />
.box</span><span style="font-size:11pt;font-family:&quot;"> <span style="color:maroon;">.br</span> {<span style="color:red;">background-position</span>: <span style="color:blue;">right</span> <span style="color:blue;">bottom</span>}<br />
</span></li>
<li><!--[if gte mso 9]&gt;  Normal 0   false false false         MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--> <!--[if gte mso 10]&gt;--> <!--[endif]-->In the web page:<br />
<!--[if gte mso 9]&gt;  Normal 0   false false false         MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:SimSun; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:宋体; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;} @font-face 	{font-family:"\@SimSun"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:SimSun;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]&gt; &lt;!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;"><span> </span><span style="color:blue;">&lt;</span><span style="color:maroon;">table</span> <span style="color:red;">cellpadding</span><span style="color:blue;">=&#8221;0&#8243;</span> <span style="color:red;">cellspacing</span><span style="color:blue;">=&#8221;0&#8243;</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;box&#8221;&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">tr</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;tl&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;t&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;tr&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;/</span><span style="color:maroon;">tr</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">tr</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;l&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;c&#8221;&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">asp</span><span style="color:blue;">:</span><span style="color:maroon;">ContentPlaceHolder</span> <span style="color:red;">ID</span><span style="color:blue;">=&#8221;ContentPlaceHolder1&#8243;</span> <span style="color:red;">runat</span><span style="color:blue;">=&#8221;server&#8221;</span> <span style="color:blue;">/&gt;</span><span style="color:blue;"><br />
&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;r&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;/</span><span style="color:maroon;">tr</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">tr</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;bl&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;b&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;</span><span style="color:maroon;">td</span> <span style="color:red;">class</span><span style="color:blue;">=&#8221;br&#8221;&gt;&lt;/</span><span style="color:maroon;">td</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;/</span><span style="color:maroon;">tr</span><span style="color:blue;">&gt;</span><span style="color:blue;"><br />
&lt;/</span><span style="color:maroon;">table</span><span style="color:blue;">&gt;</span></span></li>
</ol>
<p>Other thought:<br />
I should have used &lt;div&gt; instead of &lt;td&gt;&#8230;Now I know more.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nycharles.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nycharles.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nycharles.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nycharles.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nycharles.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nycharles.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nycharles.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nycharles.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nycharles.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nycharles.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nycharles.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nycharles.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nycharles.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nycharles.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nycharles.wordpress.com&amp;blog=3777952&amp;post=105&amp;subd=nycharles&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nycharles.wordpress.com/2008/10/01/putting-corners-using-a-single-image-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e78e4f1cd162cd5e276ce0ca81112d3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nycharles</media:title>
		</media:content>

		<media:content url="http://nycharles.files.wordpress.com/2008/10/screenshot.jpg" medium="image">
			<media:title type="html">single circle</media:title>
		</media:content>
	</item>
	</channel>
</rss>
