<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Kev'n Roberts - All Comments</title><link>http://weblogs.asp.net/kevnroberts/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: ValidationGroup on the ValidationSummary Control</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/05/12/validationgroup-on-the-validationsummary-control.aspx#6185573</link><pubDate>Tue, 13 May 2008 05:59:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6185573</guid><dc:creator>W.Meints</dc:creator><description>&lt;p&gt;That's actually rather quick. I didn't know that until now. Good to know since I use validation groups a lot.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6185573" width="1" height="1"&gt;</description></item><item><title>re: Session Dump Utility</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/05/04/session-dump-utility.aspx#6159320</link><pubDate>Mon, 05 May 2008 13:27:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6159320</guid><dc:creator>Nis L. Simonsen</dc:creator><description>&lt;p&gt;Quick thought: Given that the stuff you put in session is implicitly serializable, why not just let an XmlSerializer do the grunt work?&lt;/p&gt;
&lt;p&gt;I use the code below for dumping an object into a text file (this is just some stub code, so performance is not an issue); you could modify it to dump to the output stream instead:&lt;/p&gt;
&lt;p&gt;public static void SerializeToFile(string filepath, object instance)&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			XmlSerializer serializer = new XmlSerializer(instance.GetType());&lt;/p&gt;
&lt;p&gt;			Stream writer = new FileStream(filepath, FileMode.Create);&lt;/p&gt;
&lt;p&gt;			serializer.Serialize(writer, instance);&lt;/p&gt;
&lt;p&gt;			writer.Close();&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;(Again, just a quick thought, I might have missed a point or two :) )&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6159320" width="1" height="1"&gt;</description></item><item><title>re: Session Dump Utility</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/05/04/session-dump-utility.aspx#6159144</link><pubDate>Mon, 05 May 2008 12:24:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6159144</guid><dc:creator>kevnroberts</dc:creator><description>&lt;p&gt;Hi Nawaz,&lt;/p&gt;
&lt;p&gt;You can use the &amp;lt;trace enabled=&amp;quot;true&amp;quot; /&amp;gt; which will show you a lot of information. It shows you what is in Session, but only at the top level. In other words, if I put an object in Session, it will simply call the &amp;quot;ToString()&amp;quot; method of the object, which will just give me the type of object it is. It does not read all the properties of the object and display them as well.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6159144" width="1" height="1"&gt;</description></item><item><title>re: Session Dump Utility</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/05/04/session-dump-utility.aspx#6158478</link><pubDate>Mon, 05 May 2008 07:06:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6158478</guid><dc:creator>Nawaz Ali</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Its a nice little piece of code, I was wondering if you could use the APPLICATION-LEVEL TRACE LOGGING?&lt;/p&gt;
&lt;p&gt;Isnt it what could also be used for this purpose with &amp;lt;trace enabled=&amp;quot;true&amp;quot; /&amp;gt; tag?&lt;/p&gt;
&lt;p&gt;Nawaz&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6158478" width="1" height="1"&gt;</description></item><item><title>re: Session Dump Utility</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/05/04/session-dump-utility.aspx#6158288</link><pubDate>Mon, 05 May 2008 05:45:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6158288</guid><dc:creator>Ryan Ternier</dc:creator><description>&lt;p&gt;THe one thing I wish you could do as a developer is look at what everyone has in their own sessions... Even if you had to do this from the ISS Server itself. It would be amazing to switch a value in another person's session rather than force an update to a DataBase only to call an event on their next postback :\&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6158288" width="1" height="1"&gt;</description></item><item><title>April Links. If ScottGu can do it, I can do it as well :-)</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/04/07/mvc-and-ajax.aspx#6077344</link><pubDate>Wed, 09 Apr 2008 06:39:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6077344</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;Silverlight: Silverlight Roadmap questions Ashish Thapliyal Third Silverlight v1.0 Servicing Release&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6077344" width="1" height="1"&gt;</description></item><item><title>re: MVC and AJAX</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/04/07/mvc-and-ajax.aspx#6074898</link><pubDate>Tue, 08 Apr 2008 14:28:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6074898</guid><dc:creator>Denny Ferrassoli</dc:creator><description>&lt;p&gt;Nice post, I really like Aaron's implementation.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6074898" width="1" height="1"&gt;</description></item><item><title>re: MVC and AJAX</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/04/07/mvc-and-ajax.aspx#6073928</link><pubDate>Tue, 08 Apr 2008 05:06:01 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6073928</guid><dc:creator>Aaron Lerch</dc:creator><description>&lt;p&gt;I've been busy, and someone upgraded my sample code and sent it back to me. I'll be posting it this week. :)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6073928" width="1" height="1"&gt;</description></item><item><title>re: Object Serializer Utility</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/04/03/object-serializer-utility.aspx#6073790</link><pubDate>Tue, 08 Apr 2008 03:48:47 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6073790</guid><dc:creator>kevnroberts</dc:creator><description>&lt;p&gt;Thanks, Richard. &lt;/p&gt;
&lt;p&gt;I didn't know that you could specify a generic type in the method without declaring it in the call to the method. But now I do.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6073790" width="1" height="1"&gt;</description></item><item><title>re: Object Serializer Utility</title><link>http://weblogs.asp.net/kevnroberts/archive/2008/04/03/object-serializer-utility.aspx#6065251</link><pubDate>Fri, 04 Apr 2008 15:52:15 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6065251</guid><dc:creator>Richard</dc:creator><description>&lt;p&gt;It would probably make more sense to put the generic type parameter on the methods, rather than the class. That way, at least for the serialize method, you don't need to specify the type in the method call:&lt;/p&gt;
&lt;p&gt;public static class Serializer&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public static T Deserialize&amp;lt;T&amp;gt;(string xml)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public static string Serialize&amp;lt;T&amp;gt;(T obj)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;DateTime date = new DateTime(2008, 4, 3);&lt;/p&gt;
&lt;p&gt;string serializedDate = Serializer.Serialize(date);&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6065251" width="1" height="1"&gt;</description></item></channel></rss>