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
Post a Comment