|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
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 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 > > 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 >> >> > > 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 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 > > > 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 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 > > > 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 > > > >
Another basic question: How to call and show one Web Form from another Web Form?
RadioButton in 2 GroupNames? ASP.net datagrid with more than 1 datasource Datagrid - How to format EditCommandColumn? SortCommand and custom headers - why won't they play nice? Composite Web Control Odd Dropdownlist problem ListBox not firing SelectedIndexChanged (AutoPostBack=True) Panel limitations? DataGrid Template Item Wrap |
|||||||||||||||||||||||