Hello everyone...
I have a simple WebUserControl with Button and TextBox on it. Webform1.aspx
contains this WebUserControl.
How can I create my own C'tor for this WebUserControl - I mean when I run
Webform1.aspx I want to send data to the UserControl (fill Textbox1.Text).
any samples ?
thanx,
Oren
Oren:
Check out http://openmymind.net/index.aspx?documentId=9
you can't use anything like a constructor because controls aren't
instantiated like normal classes. If you want to set values, you create
properties in the user control and read them in Page_Load of the user
control.
Karl

Signature
-->
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!
> Hello everyone...
>
[quoted text clipped - 8 lines]
> thanx,
> Oren
Oren - 17 Oct 2005 08:16 GMT
Karl,
How can I call to a Function/Property and send data dynamically to the
UserControl ? I mean Instead (look at CurrentPage):
<Result:Header id="rh" CurrentPage="1" RecordsPerPage="2" runat="server" />
To do:
<Result:Header id="rh" CurrentPage="GetText()" RecordsPerPage="2"
runat="server" />
GetText() -> on the Webform...
(code was taken from your link below...)
http://openmymind.net/index.aspx?documentId=9
thanx,
Oren
> Oren:
> Check out http://openmymind.net/index.aspx?documentId=9
[quoted text clipped - 18 lines]
> > thanx,
> > Oren