c# - ASP.NET Adding ContentPlaceHolder to MasterPage -


i'm building kind of simple in-application cms , i'm gonno let user upload html , cms file masterpage.

a solution thought asking user put pre-defined tags inside html can replace them contentplaceholder control. reason of replacing contentplaceholder may have web controls , need postback handling cannot convert html , put them html , push client.

and questions:

1- there better solution? 2- possible? how can replace string cph control?

regards

to knowledge cannot dynamically generate content placeholders @ runtime. actual masterpage have have them in place ahead of time.

i think may able achieve after putting literal controls before , after each content placeholder. parse cms html determine html comes before placeholder , comes after. set each literal's text property respective parsed html.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -