Telerik blogs
  • Productivity Debugging

    HACK: debug modifications to the ASP.NET session

    Today I had some strange experience. I have been hunting a strange bug that caused something to be placed in the ASP.NET session at a time that it was not supposed to be.  My biggest problem was finding out who was putting an object in the session and what that object actually contained. I already knew that the HttpSessionState instance was being stored in the current HttpContext's Items collection (thanks to Mr. Lutz Roeder, of course), and my initial plan was to inherit from HttpSessionState and intercept the calls made to methods like Add, Remove, etc.  Alas, HttpSessionState is marked as...
    November 21, 2006
  • Web ASP.NET AJAX

    Creating Skinnable Checkboxes

    It is a widely known fact, that form controls, and especially comboboxes, checkboxes and radiobuttons are not that flexible as the other html elements and are hardly susceptible to css skinning. Here is a simple client-side solution for checkbox skinning. The tutorial is divided into four chapters, supplied with code listings, and explaining the different parts of the control – xhtml markup, css classes, javascript, checkbox states and more. In the beginning of each chapter there is a list of reference files. Before starting, you may download the script from here.1. Considering the (X)HTML Markup Reference files: • CheckBox.html Prior to the W3C recommendations for xhtml compliance, semantics,...
    November 20, 2006
  • Release

    MS AJAX Beta1 - ClientScript is dead, long live ScriptManager

    As some of us have found the latest installment of MS AJAX is not backwards compatible. Shortly after ScottGu’s official statement our QA team reported that none of our controls worked with MS AJAX Beta 1. That is really bad news if you happen to claim to be the first ASP.NET component vendor with official ATLAS support. This called for a desperate debugging session which happens to be what I and Hristo Deshev like the most :). So I downloaded and installed the latest version (kudos to Microsoft for the painless install). I created an “Ajax enabled web site” and wired up r.a.d.input....
    October 23, 2006
  • Web ASP.NET AJAX

    Creating ASP.NET AJAX client-side classes

    Does that subject looks lame or what! I'm trying to stop using the “Atlas” name -- it's ASP.NET AJAX now, and getting used to the new name is a major pain in the backside. Even though the official name Jessie-James-Garett-certified name is Ajax (note the capitalization), Microsoft chose AJAX. Anyway, I hope I'll get used to it eventually. So, how do you create a class in a language that has a classless object model? Why would you want to do that in the first place? Prototype-based object oriented programming is way more powerful than your grandma's classes that you are used...
    October 13, 2006
  • Web

    How to close Netscape 8.1.2.0 with JavaScript

    Hi there. I am still kicking. It has been some time since my last post as most of my efforts were concentrated on the quarterly release (which is a lame excuse). Anyway here is an interesting thing that I tackled a minute ago:The following script closes immediately the latest installment of Netscape:<html><body>    <div id="div1">        <div id="div2">        </div>    </div>        <button onclick="return CloseNetscapeNow()">Close Netscape</button>    <script type="text/javascript">        function CloseNetscapeNow()        {            var div1 = document.getElementById("div1");            var div2 = document.getElementById("div2");            div1.appendChild(div2);        }       </script></body></html>Just click the button and enjoy. It turns out that the appendChild method does not work very well when you try to add...
    October 12, 2006