Home All Groups Group Topic Archive Search About

Skin and custom controls (ASP 2.0)

Author
15 Jun 2005 8:03 AM
Frédéric Mayot
Hi
I'm trying to define a skin for a custom control. I can't see how to do
it...
My custom control inherits from a TextBox but it doesn't recognize the
skinID defined for asp:TextBox.
Any idea ?
Thanks,
Fred

Author
15 Jun 2005 9:12 AM
Patrice
Does it work without a skin id ? (it would perhaps help to see if this is
because the file is not in a proper directory or if there is a problme with
how the kinid is indicated or perhaps to see if theming is properly
enabled).

Patrice

--

Show quoteHide quote
"Frédéric Mayot" <t***@toto.com> a écrit dans le message de
news:%231IUtCYcFHA.720@TK2MSFTNGP15.phx.gbl...
> Hi
> I'm trying to define a skin for a custom control. I can't see how to do
> it...
> My custom control inherits from a TextBox but it doesn't recognize the
> skinID defined for asp:TextBox.
> Any idea ?
> Thanks,
> Fred
>
>
Author
15 Jun 2005 1:19 PM
Frédéric Mayot
The problem is that I can't specify the skin in the skin file. I can write
<asp:TextBox ...>
But I can't write
<??:MyTextBox ...>

MyTextBox inherits from TextBox. When I specify the skin Test for
asp:TextBox and if I put skinID=Test in the MyTextBox attribute, it ignores
it.

"Patrice" <nob***@nowhere.com> a écrit dans le message de news:
%23cHidpYcFHA.3***@tk2msftngp13.phx.gbl...
Show quoteHide quote
> Does it work without a skin id ? (it would perhaps help to see if this is
> because the file is not in a proper directory or if there is a problme
> with
> how the kinid is indicated or perhaps to see if theming is properly
> enabled).
>
> Patrice
>
> --
>
> "Frédéric Mayot" <t***@toto.com> a écrit dans le message de
> news:%231IUtCYcFHA.720@TK2MSFTNGP15.phx.gbl...
>> Hi
>> I'm trying to define a skin for a custom control. I can't see how to do
>> it...
>> My custom control inherits from a TextBox but it doesn't recognize the
>> skinID defined for asp:TextBox.
>> Any idea ?
>> Thanks,
>> Fred
>>
>>
>
>
Author
15 Jun 2005 1:26 PM
Brock Allen
Did you mark you control with the [Themeable(true)] attribute?

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> The problem is that I can't specify the skin in the skin file. I can
> write
> <asp:TextBox ...>
> But I can't write
> <??:MyTextBox ...>
> MyTextBox inherits from TextBox. When I specify the skin Test for
> asp:TextBox and if I put skinID=Test in the MyTextBox attribute, it
> ignores it.
>
> "Patrice" <nob***@nowhere.com> a écrit dans le message de news:
> %23cHidpYcFHA.3***@tk2msftngp13.phx.gbl...
>
>> Does it work without a skin id ? (it would perhaps help to see if
>> this is
>> because the file is not in a proper directory or if there is a
>> problme
>> with
>> how the kinid is indicated or perhaps to see if theming is properly
>> enabled).
>> Patrice
>>
>> --
>>
>> "Frédéric Mayot" <t***@toto.com> a écrit dans le message de
>> news:%231IUtCYcFHA.720@TK2MSFTNGP15.phx.gbl...
>>
>>> Hi
>>> I'm trying to define a skin for a custom control. I can't see how to
>>> do
>>> it...
>>> My custom control inherits from a TextBox but it doesn't recognize
>>> the
>>> skinID defined for asp:TextBox.
>>> Any idea ?
>>> Thanks,
>>> Fred
Author
15 Jun 2005 2:54 PM
Frédéric Mayot
No, I think it is the default is true as it inherits from a TextBox.
But event if it is marked as Themeable, I still don't know what to put in
the skin file...

"Brock Allen" <ballen@NOSPAMdevelop.com> a écrit dans le message de news:
907406632544243616737***@msnews.microsoft.com...
Show quoteHide quote
> Did you mark you control with the [Themeable(true)] attribute?
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>> The problem is that I can't specify the skin in the skin file. I can
>> write
>> <asp:TextBox ...>
>> But I can't write
>> <??:MyTextBox ...>
>> MyTextBox inherits from TextBox. When I specify the skin Test for
>> asp:TextBox and if I put skinID=Test in the MyTextBox attribute, it
>> ignores it.
>>
>> "Patrice" <nob***@nowhere.com> a écrit dans le message de news:
>> %23cHidpYcFHA.3***@tk2msftngp13.phx.gbl...
>>
>>> Does it work without a skin id ? (it would perhaps help to see if
>>> this is
>>> because the file is not in a proper directory or if there is a
>>> problme
>>> with
>>> how the kinid is indicated or perhaps to see if theming is properly
>>> enabled).
>>> Patrice
>>>
>>> --
>>>
>>> "Frédéric Mayot" <t***@toto.com> a écrit dans le message de
>>> news:%231IUtCYcFHA.720@TK2MSFTNGP15.phx.gbl...
>>>
>>>> Hi
>>>> I'm trying to define a skin for a custom control. I can't see how to
>>>> do
>>>> it...
>>>> My custom control inherits from a TextBox but it doesn't recognize
>>>> the
>>>> skinID defined for asp:TextBox.
>>>> Any idea ?
>>>> Thanks,
>>>> Fred
>
>
>
Author
15 Jun 2005 4:09 PM
Brock Allen
Ok, then the only other thing I can think of is that you didn't put in the
@Register directive in your .skin. This works for me:

<%@ Register TagPrefix="cc" Namespace="Brock" Assembly="__code" %>
<cc:MyControl runat="server" Text="hello with SkinID" SkinID="foo" />
<cc:MyControl runat="server" Text="hello no SkinID" />

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> No, I think it is the default is true as it inherits from a TextBox.
> But event if it is marked as Themeable, I still don't know what to put
> in
> the skin file...
> "Brock Allen" <ballen@NOSPAMdevelop.com> a écrit dans le message de
> news: 907406632544243616737***@msnews.microsoft.com...
>
>> Did you mark you control with the [Themeable(true)] attribute?
>>
>> -Brock
>> DevelopMentor
>> http://staff.develop.com/ballen
>>> The problem is that I can't specify the skin in the skin file. I can
>>> write
>>> <asp:TextBox ...>
>>> But I can't write
>>> <??:MyTextBox ...>
>>> MyTextBox inherits from TextBox. When I specify the skin Test for
>>> asp:TextBox and if I put skinID=Test in the MyTextBox attribute, it
>>> ignores it.
>>> "Patrice" <nob***@nowhere.com> a écrit dans le message de news:
>>> %23cHidpYcFHA.3***@tk2msftngp13.phx.gbl...
>>>
>>>> Does it work without a skin id ? (it would perhaps help to see if
>>>> this is
>>>> because the file is not in a proper directory or if there is a
>>>> problme
>>>> with
>>>> how the kinid is indicated or perhaps to see if theming is properly
>>>> enabled).
>>>> Patrice
>>>> --
>>>>
>>>> "Frédéric Mayot" <t***@toto.com> a écrit dans le message de
>>>> news:%231IUtCYcFHA.720@TK2MSFTNGP15.phx.gbl...
>>>>
>>>>> Hi
>>>>> I'm trying to define a skin for a custom control. I can't see how
>>>>> to
>>>>> do
>>>>> it...
>>>>> My custom control inherits from a TextBox but it doesn't recognize
>>>>> the
>>>>> skinID defined for asp:TextBox.
>>>>> Any idea ?
>>>>> Thanks,
>>>>> Fred
Author
15 Jun 2005 6:13 PM
Frédéric Mayot
OK, I'm very sorry, it worked, one of my developper said it wasn't possible
to use @Register tag in the skin id file.
Thanks a lot

"Brock Allen" <ballen@NOSPAMdevelop.com> a écrit dans le message de news:
908837632544341488028***@msnews.microsoft.com...
Show quoteHide quote
> Ok, then the only other thing I can think of is that you didn't put in the
> @Register directive in your .skin. This works for me:
>
> <%@ Register TagPrefix="cc" Namespace="Brock" Assembly="__code" %>
> <cc:MyControl runat="server" Text="hello with SkinID" SkinID="foo" />
> <cc:MyControl runat="server" Text="hello no SkinID" />
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>> No, I think it is the default is true as it inherits from a TextBox.
>> But event if it is marked as Themeable, I still don't know what to put
>> in
>> the skin file...
>> "Brock Allen" <ballen@NOSPAMdevelop.com> a écrit dans le message de
>> news: 907406632544243616737***@msnews.microsoft.com...
>>
>>> Did you mark you control with the [Themeable(true)] attribute?
>>>
>>> -Brock
>>> DevelopMentor
>>> http://staff.develop.com/ballen
>>>> The problem is that I can't specify the skin in the skin file. I can
>>>> write
>>>> <asp:TextBox ...>
>>>> But I can't write
>>>> <??:MyTextBox ...>
>>>> MyTextBox inherits from TextBox. When I specify the skin Test for
>>>> asp:TextBox and if I put skinID=Test in the MyTextBox attribute, it
>>>> ignores it.
>>>> "Patrice" <nob***@nowhere.com> a écrit dans le message de news:
>>>> %23cHidpYcFHA.3***@tk2msftngp13.phx.gbl...
>>>>
>>>>> Does it work without a skin id ? (it would perhaps help to see if
>>>>> this is
>>>>> because the file is not in a proper directory or if there is a
>>>>> problme
>>>>> with
>>>>> how the kinid is indicated or perhaps to see if theming is properly
>>>>> enabled).
>>>>> Patrice
>>>>> --
>>>>>
>>>>> "Frédéric Mayot" <t***@toto.com> a écrit dans le message de
>>>>> news:%231IUtCYcFHA.720@TK2MSFTNGP15.phx.gbl...
>>>>>
>>>>>> Hi
>>>>>> I'm trying to define a skin for a custom control. I can't see how
>>>>>> to
>>>>>> do
>>>>>> it...
>>>>>> My custom control inherits from a TextBox but it doesn't recognize
>>>>>> the
>>>>>> skinID defined for asp:TextBox.
>>>>>> Any idea ?
>>>>>> Thanks,
>>>>>> Fred
>
>
>
Author
13 Jul 2005 2:16 PM
Shailesh
Hi Brock,

I am developing an asp.net application using c# and asp.net 2.0 beta 2. I
started developing this page usign beta1. In beta 1 I have written some code
in Page_LoadComplete(object sender, EventArgs e) events of page. It was
working fine. But after I installed beta 2.0 Page_LoadComplete events is not
firing at all. Can u guide me how can I achieve this goal?

Thankx in advance.
Shailesh.

Show quoteHide quote
"Brock Allen" wrote:

> Did you mark you control with the [Themeable(true)] attribute?
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
> > The problem is that I can't specify the skin in the skin file. I can
> > write
> > <asp:TextBox ...>
> > But I can't write
> > <??:MyTextBox ...>
> > MyTextBox inherits from TextBox. When I specify the skin Test for
> > asp:TextBox and if I put skinID=Test in the MyTextBox attribute, it
> > ignores it.
> >
> > "Patrice" <nob***@nowhere.com> a écrit dans le message de news:
> > %23cHidpYcFHA.3***@tk2msftngp13.phx.gbl...
> >
> >> Does it work without a skin id ? (it would perhaps help to see if
> >> this is
> >> because the file is not in a proper directory or if there is a
> >> problme
> >> with
> >> how the kinid is indicated or perhaps to see if theming is properly
> >> enabled).
> >> Patrice
> >>
> >> --
> >>
> >> "Frédéric Mayot" <t***@toto.com> a écrit dans le message de
> >> news:%231IUtCYcFHA.720@TK2MSFTNGP15.phx.gbl...
> >>
> >>> Hi
> >>> I'm trying to define a skin for a custom control. I can't see how to
> >>> do
> >>> it...
> >>> My custom control inherits from a TextBox but it doesn't recognize
> >>> the
> >>> skinID defined for asp:TextBox.
> >>> Any idea ?
> >>> Thanks,
> >>> Fred
>
>
>
>