Posts
  • SharePoint Comic

    Use an Image in a HyperLinkColumn

    • 0 Comments
    I’ve seen a lot of posts on boards of people inquiring how to utilize an image in a hyperlinkcolumn.  I found those posts, because I was trying to do the same thing.  In my codebehind, I had some custom things going on for the link, and really...
  • SharePoint Comic

    Formatting Strings in a DataGrid

    • 0 Comments
    In my opinion, one of the coolest .net controls is the DataGrid.  There is sooo much you can do with this puppy.  One of the things I like most about it is how you can choose to control or not control how data is rendered.  Which brings...
  • SharePoint Comic

    Determine how many records are in a DataSet

    • 0 Comments
    To determine how many records are in a dataset, you can use the Count method of the Rows in a table (last line in code).         // New DataSet         DataSet dbSet = new DataSet ...
  • SharePoint Comic

    Date and Time in a SQL Statement (DateTime)

    • 0 Comments
    To get the date and time for a datetime value in SQL Server, use the GetDate method.  It will return the current system date and time in the SQL Server standard internal format for datetime values. This is a pretty useful function if you need to...
  • SharePoint Comic

    Close Registry Keys After Use

    • 0 Comments
    To open a windows registry key using C#, the code would look something like this: RegistryKey rk = Microsoft.Win32. Registry .LocalMachine.OpenSubKey( "Software\\TWC\\Applications" , true ); The RegistryKey object has lots of methods on it to...
  • SharePoint Comic

    How to debug JavaScript in Visual Studio

    • 0 Comments
    Follow these 2 simple steps and you will be debugging JavaScript with ease. 1.    Clear the “disable script debugging” checkbox in Internet Explorer’s advanced properties. 2.    Add the keyword “debugger” somewhere within...
  • SharePoint Comic

    How to swap two strings

    • 0 Comments
    using System; class SwappinStrings {     static void SwapStrings( ref string s1, ref string s2)     // The string parameter x is passed by reference.     // Any changes on parameters will affect the original...
  • SharePoint Comic

    ImageButton in DataGrid and DataGrid.ItemCommand Event

    • 0 Comments
    I recently had an ImageButton in a DataGrid, and for whatever reason it wouldn’t fire the DataGrid.ItemCommand event.  After beating my head on the keyboard for an entire day, I finally found the problem. When you are binding the grid (or calling...
  • SharePoint Comic

    Convert VB to C#

    • 0 Comments
    Ever find a tutorial or code sample that will resolve your current issue…. and Argh!  It’s in VB.  It’s happened to me a thousand times. This experimental web app can convert that foreign language for you:  http://www.developerfusion.co...
  • SharePoint Comic

    Clear Read Only Attributes

    • 0 Comments
    I was recently working on a project at work where the actual development was being outsourced.  When the 3rd Party sent their builds over for deployment - the code never worked.  The constant complaint was that there were files set to Read Only...
Page 8 of 8 (185 items) «45678