'Programming' Category

  • Reducing the size of your ViewState in asp.net web forms

    February 22, 2010

    Very useful article on how to reduce your ViewState size. Also very simple to implement.
    http://szokelizer.blogsome.com/2006/11/09/how-to-put-controlstate-into-viewstate-and-how-to-put-viewstate-into-session/

  • Redirecting using strong types in an asp.net web application project

    January 13, 2010

    It recently began to annoy me that every time I want to redirect to a page I have to use a string. Not a big deal I know but when you have broken links it can reflect badly on you as a developer, so I began to look for some solution that would allow for [...]

  • Custom Control won’t trigger Update Panel

    November 24, 2009

    I was using the __dopostback  function in asp.net to cause a postback that would trigger an update in an updatepanel where relevant.
    If you come across this problem make sure that your custom control implements the INamingContainer as well as the IPostBackEventHandler interfaces
    Also make sure that your first argument to the __dopostback function is the unique [...]

  • How to Mock the HttpContext in asp.net

    October 13, 2009

    I find mocking the http context rather difficult, you can’t inherit from it and making a wrapper class is a lot of work. Thankfully someone came up with a solution, unfortunately the link they included with the code is dead and I can’t seem to remember where I got the code, if anyone finds out [...]

  • JqGrid.Net Public Beta

    September 16, 2009

    Just started using the ASP.Net Web Forms wrapper for JqGrid, worth taking  a look at
    http://trirand.net/default.aspx

  • Official JqGrid ASP.Net Web Forms Control Alpha Demo

    September 10, 2009

    First look at the official JqGrid ASP.Net Web Forms control here http://www.trirand.net/jqgrid.aspx
    Includes support for Linq and object data sources.

  • Improve your testing

    September 10, 2009

    Last night I was at the first meeting of the local alt.net book club, we’re currently going through a book called the art of unit testing. What I took from reading the first chapter and the discussion we had at the meeting was that you test your code already, your tests can be improved and unit testing [...]

  • Strong Name an existing dll or assembly

    September 8, 2009

    Taken from http://sadeveloper.net/forums/p/1195/5115.aspx
    Saved me a lot of hassle
    We’ve got a 3rd party DLL that we use (not strong named) and I wanted to add it to the GAC. Alas! Only strong named assemblies are allowed in the GAC.
    I’ve been trying figure this out for almost a week… couldn’t find much help on Google , so I thought I’d share.
    Well, here is [...]

  • Calendar Extender arrows in IE8 bug

    August 25, 2009

    .ajax__calendar_title
    {width:150px; margin:auto; padding:3px;}
    Taken from here: http://forums.asp.net/p/1395899/3000757.aspx
    If you are finding that you can’t click on the arrows on the Calendar Extender in IE 8 try using the following css.
    .ajax__calendar_title{width:150px; margin:auto; padding:3px;}
    It stops the calendar title from extending over the arrows.

  • jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms

    August 24, 2009

    Get JqGrid here: http://www.trirand.com/blog/
    So far I’ve seen two implementations of ASP.Net wrapper on JqGrid, one involves a httphandler and the other involves using a web service. Both add extra work onto the gridview/datasource pattern.
    Instead I had the JqGrid use a Callback Event Reference (Page.ClientScript.GetCallbackEventReference()) with async (a parameter) set to true, this allowed me to [...]

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