I was wondering if one could do something like this:
<uc1:TestControl ID="TestControl1" runat="server"> <div>More random HTML, etc...</div> </uc1:TestControl>
I have a "Type" error. System.Web.UI.UserControl 'does not have a public property named "div". "With a little research, I found that I can add the following property to manage the server:
[ParseChildren(false)] public partial class TestControl : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { } }
Is it possible to read content from an ASP.NET control?
Edit: The wording has been changed to reflect that I am wondering if you can do this using server or user management
Jason z
source share