<rss version="2.0"><channel><title>RefactorCode</title><link>http://www.RefactorCode.com</link><description>Refactorings</description><copyright>Copyright (C) 2008</copyright><item><title>Extract File Name from URL Using JavaScript</title><link>http://www.RefactorCode.com/Refactorings/50_Extract_File_Name_from_URL_Using_JavaScript.aspx</link><description>I found this nifty code online that extracts file name from the url using JavaScript code. This can be performed better by using Regular Expressions (any takes?) </description></item><item><title>Closing Popups When the Parent Window is Closed</title><link>http://www.RefactorCode.com/Refactorings/49_Closing_Popups_When_the_Parent_Window_is_Closed.aspx</link><description>My friend recently asked me how to close the child windows when the parent is closed. Here is the code that I came up with: 

</description></item><item><title>Filling a DropDownList Using XML</title><link>http://www.RefactorCode.com/Refactorings/48_Filling_a_DropDownList_Using_XML.aspx</link><description>Some time back I had the requirement to fill the DropDownList control using XML file. Here is the code: 

</description></item><item><title>How do you access the "this" value in JavaScript?</title><link>http://www.RefactorCode.com/Refactorings/47_How_do_you_access_the_"this"_value_in_JavaScript?.aspx</link><description>Recently, while working on some JavaScript code I needed to access the object's property. The problem was that the access was done in a scope where "this" meant something else. So, here are couple of ways to perform this function. 

Which method do you use?</description></item><item><title>Using SqlBulkCopy Class to Insert from an XML File</title><link>http://www.RefactorCode.com/Refactorings/46_Using_SqlBulkCopy_Class_to_Insert_from_an_XML_File.aspx</link><description>I wanted to insert the contents of an XML file into the database using SqlBulkCopy class. Off course I can use DataSet to fill the DataTable with the contents of the XML file but this technique loads everything in memory and hence I did not liked it. The other way to is to create a class that inherits from IDataReader and reads the XML file using XmlTextReader. Here is the GetValue method of the custom XmlDataReader class. It works great but somehow it enters one more row which is blank. If you want the complete code please visit the following URL: 

http://gridviewguy.com/Articles/418_HULK_UP_Your_Bulk_Copy_Operations_Using_SqlBulkCopy.aspx
  

</description></item></channel></rss>