Contents tagged with Javascript

  • Client side devevelopment in ASP.NET

    We ASP.NET developers know how much of a pain it is writing javascript in any app we have today because of naming container madness! You've probably done something like this:

    function DoSomeThingCool() {
        var textBox = document.getElementById('ct100_contentplaceholder1_TextBox1');
    }

    or something not so hardcoded

    function DoSomeThingCool() {
        var textBox = document.getElementById('<%= TextBox1.ClientID %>');
    }

    Matthew Osborn, QA on the ASP.NET team has a great post on a new ASP.NET 4.0 feature that gives developers more control over how ClientIDs are generated.

    Read more...