473,883 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4981
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.co m> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP15.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************* ***@tk2msftngp1 3.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.co m> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP15.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************* ***@tk2msftngp1 3.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.co m> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP15.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****@NOSPAMd evelop.com> a écrit dans le message de news:
90************* *********@msnew s.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************* ***@tk2msftngp1 3.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.co m> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP15.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="Broc k" Assembly="__cod e" %>
<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****@NOSPAMd evelop.com> a écrit dans le message de
news: 90************* *********@msnew s.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************* ***@tk2msftngp1 3.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.co m> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP15.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****@NOSPAMd evelop.com> a écrit dans le message de news:
90************* *********@msnew s.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="Broc k" Assembly="__cod e" %>
<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****@NOSPAMd evelop.com> a écrit dans le message de
news: 90************* *********@msnew s.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************* ***@tk2msftngp1 3.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.co m> a écrit dans le message de
> news:%2******** *******@TK2MSFT NGP15.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_LoadComple te(object sender, EventArgs e) events of page. It was
working fine. But after I installed beta 2.0 Page_LoadComple te 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************* ***@tk2msftngp1 3.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.co m> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP15.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
3028
by: Shimon Sim | last post by:
I have a custom composite control I have following property
1
3030
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 have a usercontrol, the ascx is defined like this: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Test.ascx.cs" Inherits="Spin.Test" %> <asp:Panel ID="Panel1" runat="server" Height="243px" Width="350px">
0
1660
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" runat="server"> <PagerTemplate> <font class="smalltext">Page:</font> <asp:Label ID="lblCurrentPage" runat="server"
0
1443
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 successfully use this control in my aspx page with both declaring it in my web.config OR directly in the page itself with @Register. FYI... the assembly is referenced by project in the solution and we are using C#.
0
1001
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 other server controls. 2. A skin can not be made using standard HTML Tags (ie. <table>) 3. The solution for using skins for composite controls is to do exactly that, make a composite control and expose simple properties. Then register the...
2
4392
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. Here is how the custom control code starts:
8
5160
by: scotty | last post by:
Can a .skin file be created without visual studio? Thanks, Scott
4
2332
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 skinId property with no luck. Any ideas? Here is my simplified code: TextBox newTextBox = new TextBox();
5
4141
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 to wrap the control in the proper control type - which is also a container. At design time I want to be able to turn this : <my:container> <asp:textbox />
0
9944
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11151
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10858
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10420
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9582
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5804
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.