473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Skin and custom controls (ASP 2.0)

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
7 4953
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
1
by: Philipp Lenz | last post by:
I'm very confused about how this works, all the tutorials out there show me how to apply a skin to a webcontrol, but I want to know how I can access the components of a control....for example: I...
0
by: Stuart Shay | last post by:
Hello All I am working on creating a generic theme for my GridView Controls. In My Skin File I have something like this. <asp:GridView SkinId="CustomPager" CssClass="gridView"...
0
by: ack95 | last post by:
I am going insane. We have created a themeable control called GridViewBase: public class GridViewBase : GridView in another assembly called BBB:UI and the namespace is BBB:UI as well. I can...
0
by: sean_mcad | last post by:
I need to confirm what my errors are telling me regarding skins. 1. A skin must be a server control, can not contain nested controls of any kind including HTML, Literal controls (same thing), or...
2
by: shapper | last post by:
Hello, I created an Asp.Net 2.0 which contains a custom control. I compiled the project and now I am using it in a web site. The custom control contains a Panel, a Label and an Image. ...
8
by: scotty | last post by:
Can a .skin file be created without visual studio? Thanks, Scott
4
by: T Samualson | last post by:
I am programmatically adding controls to my user control but my skin is not being applied to the control. The code gets executed in a btn_Click event. I have tried specifically setting the...
5
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.