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 7 4973
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
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
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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shimon Sim |
last post by:
I have a custom composite control
I have following property
|
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">
|
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"
|
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#.
|
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...
| |
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:
|
by: scotty |
last post by:
Can a .skin file be created without visual studio?
Thanks,
Scott
|
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();
|
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 />
|
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...
|
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...
| |
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,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |