asp.net - render text file and change object's properties -
i want generate output of asp.net page reading text file, controls out of text, change te properties of these controls, render , displaying it.
so example, text file may contain:
<head> <title></title> </head> <body> <form id="form1" runat="server"> <div> <sys:label id="label1" runat="server" text="empty1"></sys:label> <sys:label id="label2" runat="server" text="empty2"></sys:label> </div> </form> </body> </html>
after reading text, change properties of sys:label controls. after that, text rendered, , displayed.
problem is, how can reach these controls ?
you create text files ascx files, load them page.loadcontrol
, reach it's inner controls page.findcontrol
.
Comments
Post a Comment