<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Ben's Random Mumbles</title><subtitle type="html" /><id>http://weblogs.asp.net/brichardson/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/brichardson/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2003-02-12T18:28:00Z</updated><entry><title>.NET Developer position available (Sydney)</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2006/11/20/net-developer-position-available-sydney.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2006/11/20/net-developer-position-available-sydney.aspx</id><published>2006-11-20T01:02:00Z</published><updated>2006-11-20T01:02:00Z</updated><content type="html">&lt;p&gt;If your in or around Sydney, &lt;a href="http://freshview.com/about/developer.aspx"&gt;we&amp;#39;re looking&lt;/a&gt; for a talented and versatile senior .NET developer to join our team. You&amp;#39;ll be responsible for developing some exciting new features for our current applications and also getting your hands dirty building new web-based products moving forward.&lt;/p&gt;&lt;p&gt;&amp;nbsp;If it sounds like something you&amp;#39;d be interested in we&amp;#39;d love to &lt;a href="http://freshview.com/about/developer.aspx"&gt;hear from you&lt;/a&gt;.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=964387" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term="ASP.NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/ASP.NET/default.aspx" /></entry><entry><title>Prevent Dictionary Attacks</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/10/01/29873.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/10/01/29873.aspx</id><published>2003-09-30T23:51:00Z</published><updated>2003-09-30T23:51:00Z</updated><content type="html">Implement seven application-level &lt;A href="http://www.ftponline.com/vsm/2003_12/magazine/features/mccaffrey/"&gt;techniques&lt;/A&gt; to safeguard your password-protected ASP.NET apps.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=29873" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry><entry><title>Caching database contents</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/07/31/caching-database-contents.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/07/31/caching-database-contents.aspx</id><published>2003-07-31T11:46:00Z</published><updated>2003-07-31T11:46:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://weblogs.asp.net/KDente/" mce_href="http://weblogs.asp.net/KDente/"&gt;Kevin&lt;/A&gt;&amp;nbsp;made&amp;nbsp;a post about &lt;A href="http://weblogs.asp.net/kdente/archive/2003/07/28/10622.aspx" mce_href="http://weblogs.asp.net/kdente/archive/2003/07/28/10622.aspx"&gt;ASHX&lt;/A&gt;&amp;nbsp;files recently. Like Kevin, I found the documentation on HTTP Handlers very light, in fact I heard about them by attending a talk by Jeff Prosise on &lt;A href="http://www.wintellect.com/power/" mce_href="http://www.wintellect.com/power/"&gt;Power ASP.NET&lt;/A&gt;. Another interesting technique I picked up from Jeff's talk was a method to cache a database table using the built in caching features of ASP.NET.&lt;/P&gt;
&lt;P&gt;This involves creating an extended stored procedure which basically touches a file to update the date/time it was last modified. Then you create an Update/Insert/Delete trigger on the table that is in the cache to call the extended stored procedure. Finally, create a file dependency on the cache to update when the file is updated.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=22057" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry><entry><title>72 ASP.NET articles</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/07/09/9831.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/07/09/9831.aspx</id><published>2003-07-08T23:37:00Z</published><updated>2003-07-08T23:37:00Z</updated><content type="html">&lt;p&gt;Plenty of &lt;a href="http://www.ftponline.com/resources/spcollections/aspnet/default.asp"&gt;articles&lt;/a&gt; on developing and debugging Web apps, extracting performance data, using page templates, and more&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9831" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry><entry><title>Forms authentication on multiple subfolders in asp.net</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/05/19/7208.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/05/19/7208.aspx</id><published>2003-05-19T06:26:00Z</published><updated>2003-05-19T06:26:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://www.peterprovost.org/"&gt;Peter&lt;/A&gt; comes up with a &lt;A href="http://www.peterprovost.org/2003/05/16.html#a335"&gt;solution&lt;/A&gt; to a problem I have come across several times before.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7208" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry><entry><title>Passing SqlDataReader to Repeater OK?</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/04/01/passing-sqldatareader-to-repeater-ok.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/04/01/passing-sqldatareader-to-repeater-ok.aspx</id><published>2003-04-01T22:48:00Z</published><updated>2003-04-01T22:48:00Z</updated><content type="html">&lt;P&gt;I have made a post over at the &lt;A href="http://www.asp.net/Forums/"&gt;asp.net forums&lt;/A&gt; about binding a SqlDataReader to a Repeater control but can't seem to get a straight answer. OK, I know I should be closing a DataReader when I'm finished with it, if I don't the connection doesn't get closed properly and after a while the web site will fall over.&lt;/P&gt;
&lt;P&gt;But what about when you are binding a DataReader to a Repeater or DataList control? The DataReader is never closed, does the Repeater control handle this for me?&lt;/P&gt;
&lt;P&gt;I have looked at 2 sample applications to see how they handle this, &lt;A href="http://www.ibuyspystore.com/" mce_href="http://www.ibuyspystore.com"&gt;IBuySpyStore&lt;/A&gt;&amp;nbsp;and the &lt;A href="http://www.asp.net/Default.aspx?tabindex=7&amp;amp;tabid=41" mce_href="http://www.asp.net/Default.aspx?tabindex=7&amp;amp;tabid=41"&gt;ASP.NET Forums&lt;/A&gt;. IBuySpy passes a SqlDataReader to the Repeater or DataList control, but the Forums read the data from the SqlDataReader into a collection of objects, close the DataReader and&amp;nbsp;bind the collection to their control. Maybe I should be using the second technique, but I really like the simplicity of just binding a DataReader straight to a Repeater control.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4632" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry><entry><title>System.Drawing.Color.What?</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/02/28/3190.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/02/28/3190.aspx</id><published>2003-02-27T22:59:00Z</published><updated>2003-02-27T22:59:00Z</updated><content type="html">&lt;p&gt;I have started using the TallPDF.NET component to create a &lt;a href="http://dotnetweblogs.com/BRichardson/archive/02122003.aspx"&gt;dynamic PDF report&lt;/a&gt; and bumped into a little problem when I had to specify the background colors for various parts of my report. I could use the VS.NET intellisense to give me a list of all the avalible colors, but who knows what Chartreuse looks like? &lt;/p&gt;
&lt;p&gt;So I put together a simple Windows Form that has a comboBox and a panel, and added some code to add all the colors to the comboBox, and on SelectedIndexChanged modify the background color of the panel. &lt;/p&gt;
&lt;p&gt;To add the colors to the comboBox: &lt;/p&gt;
&lt;p&gt;foreach (string colourName in Enum.GetNames(typeof(KnownColor))) &lt;br /&gt;{&lt;br /&gt;        comboBox1.Items.Add(colourName); &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;And then add an SelectedIndexChanged event to the comboBox with the following code: &lt;/p&gt;
&lt;p&gt;string cName = (comboBox1.SelectedItem as string); &lt;br /&gt;Color newColour = Color.FromName(cName); &lt;br /&gt;panel1.BackColor = newColour; &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3190" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry><entry><title>ADO.NET tips</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/02/25/2915.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/02/25/2915.aspx</id><published>2003-02-25T05:08:00Z</published><updated>2003-02-25T05:08:00Z</updated><content type="html">&lt;P DESIGNTIMESP="24567"&gt;&lt;A href="http://www.fawcette.com/vsm/2003_04/magazine/features/esposito/default.asp" DESIGNTIMESP="24568"&gt;Top 10 ADO.NET tips&lt;/A&gt; from Visual Studio.NET magazine.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2915" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry><entry><title>Reporting options in .NET</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/brichardson/archive/2003/02/12/2279.aspx" /><id>http://weblogs.asp.net/brichardson/archive/2003/02/12/2279.aspx</id><published>2003-02-12T08:28:00Z</published><updated>2003-02-12T08:28:00Z</updated><content type="html">&lt;P&gt;Chad has &lt;A href="http://dotnetweblogs.com/Cosgood/Comments/2273.aspx"&gt;written&lt;/A&gt;&amp;nbsp;about an interesting technique for integrating HTML reports into a WinForms application that was of particular interest to me. I have been working on a WinForms app that required a basic report, and I looked at the option of creating it in HTML but decided not to for a few reasons.&amp;nbsp;Problems with&amp;nbsp;printing was the main issue, such as&amp;nbsp;the inability to display the column headings at the top of each page and the extra header/footer IE puts in by default when printing (page title in header, URL in footer).&lt;/P&gt;
&lt;P&gt;In the end we used Crystal Reports.NET, which I had very limited experience in but managed to get things working. There were a few problems we bumped into with CR.NET, such as having to store images as BLOBS if we wanted to pull them out in the report dynamically. There was also no option of printing the report in landscape by default;the user has to manually change the properties in the print dialog.&lt;/P&gt;
&lt;P&gt;I was planning on using CR.NET on another project coming up soon which requires a PDF to be created from data sitting on a remote web server, and then upload the file up to the server, which would then be accessed from the web site. But it looks like there might be a much better solution. Scott &lt;A href="http://aspnetweblog.com/Comments/2104.aspx"&gt;gave some praise&lt;/A&gt;&amp;nbsp;to the Tall PDF.NET component, which would allow me to create the PDF on the server. I just hope they have improved the documentation with Version 2.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2279" width="1" height="1"&gt;</content><author><name>benricho</name><uri>http://weblogs.asp.net/members/benricho.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/brichardson/archive/tags/.NET/default.aspx" /></entry></feed>