tag:blogger.com,1999:blog-3314088046740781592023-11-15T18:47:01.138+00:00Welcome to CodeWrite!Here you will find a wide variety of programming articles, mainly about C# and ASP.NET, but also some XHTML, CSS and javascript. I want to cover the whole programming lifecycle, so I'll include details of tools that I find useful, as well as strategies for design and testing.Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-331408804674078159.post-10358831719381711662011-04-07T18:00:00.003+01:002011-04-07T18:03:30.068+01:00Updated ArticlesI've updated all the articles to point to my new website. A lot of these articles were written a long time ago now, but I think they may still be useful.Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-71922837779632287782008-05-19T22:19:00.003+01:002011-04-07T17:55:34.179+01:00Easy way to store objects in a database using C# / .NETI wanted a way to save objects easily and quickly to a SQL database in ASP.NET projects, so I wrote a class library that can serialize any object. You can read the article <a href="http://codewrite.co.uk/codearticles/archive/ObjectDatabase.aspx">here</a>.Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-68973464768725122112008-03-12T23:55:00.002+00:002008-03-13T00:00:17.083+00:00Image Button ArticleI've updated the article about image buttons. The old buttons did the rollover effect when you moved the mouse anywhere over the button, but the hyperlink only worked if the mouse was over the text. I've worked out how to make the hyperlink work over the whole button now, by specifying padding round the text.<br /><br />By the way, I'm planning to turn this into an ASP.NET control, so if you're into ASP.NET watch this space!Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-17996839655452314262008-03-07T00:15:00.008+00:002011-04-07T17:58:06.750+01:00Debugging UI Objects Running Worker ThreadsYou can view this full page by following <a href="http://codewrite.co.uk/codearticles/archive/UIWorkerThread.aspx">this link</a>).<br /><iframe src="http://codewrite.co.uk/codearticles/archive/UIWorkerThread.aspx" frameborder="0" width="100%" height="660"></iframe>Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-60899333964681560712008-03-05T22:46:00.004+00:002011-04-07T17:58:36.309+01:00Visual Studio C# Refactoring EncapsulateField EnhancementYou can view this full page by following <a href="http://codewrite.co.uk/codearticles/archive/EncapsulateField.aspx">this link</a>).<br /><iframe src="http://codewrite.co.uk/codearticles/archive/EncapsulateField.aspx" frameborder="0" width="100%" height="510"></iframe>Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-4046564381292710282008-02-28T22:06:00.005+00:002011-04-07T17:59:01.977+01:00Date Parsing, Addition and Display in JavascriptDespite there being a lot of articles about date parsing on the internet, I couldn't find any simple examples of how to read a user entered date (e.g. from a text box), and then manipulate it (in my case subtract a day) and then re-display it to the user. So I wrote the following function (you can view this full page by following <a href="http://codewrite.co.uk/codearticles/archive/DateAdd.aspx">this link</a>).<br /><iframe src="http://codewrite.co.uk/codearticles/archive/DateAdd.aspx" frameborder="0" width="100%" height="510"></iframe>Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-85763643572246757782008-02-25T22:44:00.013+00:002011-04-07T17:57:07.780+01:00Image Buttons Using CSSI recently wanted to come up some buttons with rollover effects using CSS, where I could use the same image, but different text for each button. The following article describes how I did it (you can view this full page by following <a href="http://codewrite.co.uk/codearticles/archive/imagebutton.aspx">this link</a>).<br /><iframe src="http://codewrite.co.uk/codearticles/archive/ImageButton.aspx" frameborder="0" width="100%" height="510"></iframe>Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-61778318674859029532008-02-20T23:59:00.000+00:002008-02-21T00:08:25.121+00:00Favorite sitesI'll expand on this soon. but for now, two sites that I think are particularly good are:<br /><a href="http://www.asp.net">ASP.NET</a>especially for the videos about using C# and ASP.NET in visual studio, and<br /><a href="http://www.codeproject.com">CodeProject</a> which I have always found to have well thought out and easy to use articles and code examples.Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0tag:blogger.com,1999:blog-331408804674078159.post-79969109344194341072008-02-20T23:27:00.001+00:002008-03-13T00:05:13.270+00:00Favorite toolsHere's a list of some of the tools that I find really useful.<br /><br />Visual Studio 2005. Hopefully I'll get to have a go at VS2008 soon...<br /><a href="http://www.mozilla.com/firefox">Firefox</a>. I'm a big Microsoft fan, but even I have to admit - Firefox is much better than IE7.<br /><a href="http://kdiff3.sourceforge.net">KDiff3</a>. Very handy for comparing versions of code. I'd also recommend replacing SourceSafe's WinDiff program with KDiff.<br /><a href="http://www.getpaint.net">Paint.NET</a> for all those images...<br /><a href="http://ccollomb.free.fr/unlocker">Unlocker</a>, for those annoying times when the OS won't let you delete DLLs etc.<br /><br />I'd love to know if there are any tools that you think are really useful, so please feel free to add a comment to this post. Thanks.Jonhttp://www.blogger.com/profile/02350301126173549667noreply@blogger.com0