views:

39

answers:

1

If e.g. 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)

A: 

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).

Aren