By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,969 Members | 2,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,969 IT Pros & Developers. It's quick & easy.

Skin and custom controls (ASP 2.0)

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
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" <to**@toto.com> a écrit dans le message de
news:%2***************@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

Nov 19 '05 #2

P: n/a
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" <no****@nowhere.com> a écrit dans le message de news:
%2****************@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" <to**@toto.com> a écrit dans le message de
news:%2***************@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


Nov 19 '05 #3

P: n/a
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" <no****@nowhere.com> a écrit dans le message de news:
%2****************@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" <to**@toto.com> a écrit dans le message de
news:%2***************@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


Nov 19 '05 #4

P: n/a
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" <ba****@NOSPAMdevelop.com> a écrit dans le message de news:
90**********************@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" <no****@nowhere.com> a écrit dans le message de news:
%2****************@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" <to**@toto.com> a écrit dans le message de
news:%2***************@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


Nov 19 '05 #5

P: n/a
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" <ba****@NOSPAMdevelop.com> a écrit dans le message de
news: 90**********************@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" <no****@nowhere.com> a écrit dans le message de news:
%2****************@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" <to**@toto.com> a écrit dans le message de
news:%2***************@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


Nov 19 '05 #6

P: n/a
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" <ba****@NOSPAMdevelop.com> a écrit dans le message de news:
90**********************@msnews.microsoft.com...
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" <ba****@NOSPAMdevelop.com> a écrit dans le message de
news: 90**********************@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" <no****@nowhere.com> a écrit dans le message de news:
%2****************@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" <to**@toto.com> a écrit dans le message de
> news:%2***************@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


Nov 19 '05 #7

P: n/a
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.

"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" <no****@nowhere.com> a écrit dans le message de news:
%2****************@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" <to**@toto.com> a écrit dans le message de
news:%2***************@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


Nov 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.