Since Razor is just an advanced StringBuilder there is no reason not to treat its output as normal valid XHTML. If we weren't doing that, Razor functions could never be used as input for other functions that expects XHTML.
But seriously? Just cut/paste the code into a ascx/ascx.cs file, and your good to go. I always do this when working with ie Google Custom Search, because i can never trust the markup i receive from them and got tired of maintaining a search-and-replace table.
But seriously? Just cut/paste the code into a ascx/ascx.cs file, and your good to go. I always do this when working with ie Google Custom Search, because i can never trust the markup i receive from them and got tired of maintaining a search-and-replace table.