<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d13376580\x26blogName\x3dThe+GeekWithin\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://geekwithin.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://geekwithin.blogspot.com/\x26vt\x3d-8111287070889316650', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

The GeekWithin

Friday, June 03, 2005

Web User Control Hell

Web user controls.... an innovation that can make or break a good ASP.NET object oriented design.

The problem is, once you start modularizing your controls, and embedding them within each other, the event model breaks down. I guess breaks down is too soft, is just doesn't work. The answer? You have to write event handlers at higher levels that will trickle back down and trigger the correct event in the embedded control. Sheesh. It is easier to revert to classic ASP style solutions that to do this.

Anyone out there have a tried and true method for working this issue?


 

Creative Commons License  This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.