tag:blogger.com,1999:blog-4046651698016467102.post511312136198680449..comments2023-05-14T14:39:57.585+01:00Comments on Andrew Gunn's Blog: Custom controls in ASP.NET MVCAndrew Gunnhttp://www.blogger.com/profile/07687301186540182546noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4046651698016467102.post-41110361395027272472010-03-11T13:29:15.744+00:002010-03-11T13:29:15.744+00:00Good questions. Compisition is simple normally, be...Good questions. Compisition is simple normally, because most extension methods return a string of HTML. This string could be a single HTML element a combination. To reduce duplication, you could build up the composite string by calling other extension methods.<br /><br />I've been putting off controls with AJAX for a while. For inspiration, I'd probably look at the ASP.NET MVC control library by Telerik - I think place JavaScript in separate files but I'm not sure how they reference it from inside their controls. I'll try and come up with some examples ASAP.Andrew Gunnhttps://www.blogger.com/profile/07687301186540182546noreply@blogger.comtag:blogger.com,1999:blog-4046651698016467102.post-36016363948909866762010-03-10T15:10:07.247+00:002010-03-10T15:10:07.247+00:00How about complicated controls with a lot of compo...How about complicated controls with a lot of composition and client side scripts to deal with Ajax?<br /><br />What is the best approach?<br /><br />Thanks<br />HardyHardyhttps://www.blogger.com/profile/11021590440345859047noreply@blogger.com