|
One of the biggest problems i had with asp.net is it didn't seperate control properties from its visual appearance. control adapters fixed this by using a visitor pattern which contains logic on how the control renders itself. although i understand the theory i've never done it. Is anyone designing using control adapters?
here are practical problems: 1) <form action="" method="post"> rewriting the action attribute. See i'm using apache to proxy an asp.net site so that apache handles all the rewrite rules. provides ssl - with openssl. support for wildcard.domain.com. Currently i have javascript rewriting it.. but i would like to hardcode the value on the server side.
2) highlight text from search engines. this is simple in php as i start ob_start hold my buffer and get the final string value when the page is finished processing... then i just run a regex to replace text with a highlighted version. In asp.net things fire differently and holding the buffer doesn't aways work. If i can generate a control adapter containing this logic.. i could pass it to the page class which renders the page... or at least to my master page content panels.
|