If eg I keep control markup in DB instead of ascx file. How can I load control from string constant?
(of course if I don't want to save copy to disk)
Er... you can't really. Unless your control is a Server-Side control it's pre-compiled when the ASP.NET Website spins up. Also stored controls in a db wont be able to have sub-controls or markup-data-binding or data sets.
You should really only store the relevant data in the DB and generate markup in the page (like a view).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.