|
 |
aspx thread: UserControls on Web Forms
Message #1 by Terrence Joubert <Terrence@v...> on Fri, 22 Mar 2002 12:04:08 +0400
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1D178.2512EDD0
Content-Type: text/plain
Hi
I have a Web User control on a web form.
There are functions within the User Control that are declared as Public and
therefore are Public members (methods) of the class that creates the User
Control.
When I put the UserControl on a web form, I cannot call these functions from
within code on the web form.
Does anyone have a way around this?
Thanks
Terrence
Message #2 by Terrence Joubert <Terrence@v...> on Mon, 25 Mar 2002 16:03:52 +0400
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1D3F5.219C08F0
Content-Type: text/plain
Would anyone know how I can access a Public member of a Web User Control
from within a class, or Web Form that contains the control?
Any feedback will be very much appreciated.
Thanks
Terrence
-----Original Message-----
From: Terrence Joubert
Sent: Friday, March 22, 2002 12:24 PM
To: 'ASP+'
Subject: UserControls on Web Forms
Hi
I have a Web User control on a web form.
There are functions within the User Control that are declared as Public and
therefore are Public members (methods) of the class that creates the User
Control.
When I put the UserControl on a web form, I cannot call these functions from
within code on the web form.
Does anyone have a way around this?
Thanks
Terrence
Message #3 by <zivf@m...> on Mon, 25 Mar 2002 15:25:56 +0200
|
|
This is a multi-part message in MIME format.
------_=_NextPart_001_01C1D400.981D40EB
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
all you need to do is add a protected variable declaration, the same way
it (automatically) happens with WebControls, in the codebehind (vb or
cs) file.
ziv.
Message #4 by "ajit goel" <ajitgoel@h...> on Mon, 25 Mar 2002 17:50:46 -0800
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0152_01C1D425.97715530
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
1) Register the usercontrol on the web form:-
<%@ Register TagPrefix=3D"usercontrolnamespace"
Namespace=3D"usercontrolnamespace" Assembly=3D"usercontrolnamespace" %>
2) Access its public properties:-
<usercontrolnamespace:ClassName property1=3D"Hello There" property2=3D3
runat=3Dserver/>
Regards;
Ajit Goel
----- Original Message -----
From: Terrence Joubert
To: ASP+
Sent: Monday, March 25, 2002 4:03 AM
Subject: [aspx] RE: UserControls on Web Forms
Would anyone know how I can access a Public member of a Web User
Control from within a class, or Web Form that contains the control?
Any feedback will be very much appreciated.
Thanks
Terrence
-----Original Message-----
From: Terrence Joubert
Sent: Friday, March 22, 2002 12:24 PM
To: 'ASP+'
Subject: UserControls on Web Forms
Hi
I have a Web User control on a web form.
There are functions within the User Control that are declared as
Public and therefore are Public members (methods) of the class that
creates the User Control.
When I put the UserControl on a web form, I cannot call these
functions from within code on the web form.
Does anyone have a way around this?
Thanks
Terrence
|
|
 |