?
=?ISO-8859-1?Q?Mika=EBl_PLOUHINEC?=
Hello,
I work in a ASP.NET (C#) project. I would like to create an user control
with a label and a textBox.
My component myTextBox.ascx is present in my page (aspx) with
<toto:TextBoxPerso ID="TextBoxPerso1" runat="server" /><br />
So I would like to manage the component of my component for example in
the code of my aspx page.
I find I can do that with
((Label)(this.TextBoxPerso1.FindControl("label"))).Text = "Label 2";
But is there a way to "publish" several properties of my component in
order to access to this like
this.TextBoxPerso1.getLabel().Text = "label 2";
Thanks a lot.
Mike.
I work in a ASP.NET (C#) project. I would like to create an user control
with a label and a textBox.
My component myTextBox.ascx is present in my page (aspx) with
<toto:TextBoxPerso ID="TextBoxPerso1" runat="server" /><br />
So I would like to manage the component of my component for example in
the code of my aspx page.
I find I can do that with
((Label)(this.TextBoxPerso1.FindControl("label"))).Text = "Label 2";
But is there a way to "publish" several properties of my component in
order to access to this like
this.TextBoxPerso1.getLabel().Text = "label 2";
Thanks a lot.
Mike.