'Archive posts' Category

  • Creating a .NET class file from a WSDL

    February 14, 2010

    A common approach when adding a web service to an ASP.net application, is to right click "Add Web Reference" and specify the path of the WSDL which outlines the interface for the service.   An alternative, and relatively simple to accomplish, alternative to this approach is to create a class that represents the xml contract outlined [...]

  • Becoming a Technical Leader: Book Review

    February 14, 2010

    It’s no secret that I am a big fan of Dale Carnegie’s – How to Win Friends and Influence People, and this book extends upon the principles in Carnegie’s book and applies them directly to any technical job. Personally, I would still advise reading Carnegie’s book first as a business book, but if you have [...]

  • Code Complete 2: Book Review

    February 14, 2010

    This book is the de-facto standard for best practices as it relates to source code and programming. User ratings and industry leaders will also concur, that this book, now in it’s second edition leads the pack as a guide. The book is a long read, but it is by no means simply a filler to [...]

  • SQL Server 2005 Database Design & Optimization

    February 14, 2010

    The following are some basic design guidelines to use when implementing a SQL 2005 database. 1.  Enforce foreign and unique key constraints. Foreign and unique key constraints will maintain your database integrity.  Think of it as insurance against orphaned records and duplicate data.  If you know a column is to be unique, or a relationship [...]

  • 7 Healthy Habits of Highly Effective Web Workers

    February 14, 2010

    I doubt Steven Covey will ever read my blog post, but I’m glad you found your way here.  Presented below, is my best effort, to provide you with the concepts that have worked for me.  All these suggestions, are merely suggestions, but they have worked well for me, so I am sharing them with you. [...]

  • Page_Load executes twice on first request (ASP.net Bug)

    February 14, 2010

    So I think I found a bug in ASP.net, I confirmed this by creating a page with all other environment variables removed to isolate the problem and my theory held. To further complicate things, this only happens in Firefox. If I create a blank page and put in an asp:image tag: And I leave out [...]

  • 8 Favorite Developer Tips & Tricks

    February 14, 2010

    I’ve been keeping a running collection of tips/tricks that I felt made my life easier as a developer.  I hope this collection has you feeling the same way.  Feel free to post a comment at the bottom if there are others you found useful as well. 1.  Visual Studio.  Conditional breakpoints.  Have you ever right [...]

  • Removing bulk / large amounts of data using SQL delete

    February 14, 2010

    Getting timeouts from your SQL server when you are trying to remove a large number of records from a large database table? Try the following work-around. Dim iRowsAffected As Integer = 0 While iRowsAffected > 0 System.Threading.Thread.Sleep(100) ‘ Sleep 100 milliseonds between calls to throttle the process Dim cmd As SqlCommand = New SqlCommand(“DELETE TOP [...]

  • Assigning properties to dynamically loaded user controls

    February 14, 2010

    I’ve always struggled with properly assigning a user control (.ascx) a public property when dynamically loading that control from the code-behind and then placing that control in a placeholder. Today I did a little more sleuthing work and came up with the following solution: Given the following user control code-behind: Partial Class Controls_MyUserControl Inherits System.Web.UI.UserControl [...]

  • Properly Paging With the DataPager (requires multiple clicks, or doesn’t respond)

    February 14, 2010

    Say you are given the following .aspx page markup, and you want this ListView/Datapager combination to work without the ObjectDataSource (below). You may run into a situation where each click does not bring you to the next page. ” /> In your code behind you are binding this controller: Protected Sub Page_Load(ByVal sender As Object, [...]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org