|
 |
aspx thread: Minor question about text properties in ASP+ controls
Message #1 by danielw@w... on Fri, 4 Aug 2000 16:56:18
|
|
Well, a grumble, actually... can anyone explain the pressing reason for
ASP+ serverside controls having .Text properties, whilst the corresponding
VB object still has a .Caption property?
Message #2 by Rob Howard <rhoward@m...> on Fri, 4 Aug 2000 09:08:16 -0700
|
|
this is speculation ;)
i would imagine that the propery is called "text" since the value is the
text that gets emitted when the control is rendered.
of course, you can always create a new control derived from the control with
the .Text propery and write:
public string Caption{
get{return (string)base.Text;}
set{base.Text = Caption;)
}
-----Original Message-----
From: danielw@w... [mailto:danielw@w...]
Sent: Friday, August 04, 2000 9:56 AM
To: ASP+
Subject: [aspx] Minor question about text properties in ASP+ controls
Well, a grumble, actually... can anyone explain the pressing reason for
ASP+ serverside controls having .Text properties, whilst the corresponding
VB object still has a .Caption property?
---
Message #3 by danielw@w... on Fri, 4 Aug 2000 17:39:49
|
|
I guess. It's just that a page may be covered in text, but I tend to regard
a caption as more than just text. Isn't it text that's tied to it's control
and is intended to explain it? As in:
<asp:Button id="Armegadon"
text="Do not press this button"
onclick="LaunchMIRBs_Click"
runat="server"/>
On 08/04/00, "Rob Howard wrote:
> this is speculation ;)
>
> i would imagine that the propery is called "text" since the value is the
> text that gets emitted when the control is rendered.
>
> of course, you can always create a new control derived from the control with
> the .Text propery and write:
>
> public string Caption{
> get{return (string)base.Text;}
> set{base.Text = Caption;)
> }
>
> -----Original Message-----
> From: danielw@w... [mailto:danielw@w...]
> Sent: Friday, August 04, 2000 9:56 AM
> To: ASP+
> Subject: [aspx] Minor question about text properties in ASP+ controls
>
>
> Well, a grumble, actually... can anyone explain the pressing reason for
> ASP+ serverside controls having .Text properties, whilst the corresponding
> VB object still has a .Caption property?
>
> ---
|
|
 |