Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > user controls and style sheets

Reply
Thread Tools

user controls and style sheets

 
 
Just Me
Guest
Posts: n/a
 
      01-14-2007
I created a control which works fine. I applied a cssClass style sheet for a
panel in my control. When the controls is loaded on a page and displayed in
a browser, it works fine. However, when I am trying to test the control I
cant see the style affects.

Any ideas ?


 
Reply With Quote
 
 
 
 
Laurent Bugnion [MVP]
Guest
Posts: n/a
 
      01-14-2007
Hi,

Just Me wrote:
> I created a control which works fine. I applied a cssClass style sheet for a
> panel in my control. When the controls is loaded on a page and displayed in
> a browser, it works fine. However, when I am trying to test the control I
> cant see the style affects.
>
> Any ideas ?


Where did you define the style? In the HEAD section, or in a file? And
if in a file, how do you include the file? Maybe the test page doesn't
find the CSS file.

Also, how do you apply the style to the control? With a class, or with
the control's ID?

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
 
 
 
Just Me
Guest
Posts: n/a
 
      01-14-2007

> Where did you define the style? In the HEAD section, or in a file? And
> if in a file, how do you include the file? Maybe the test page doesn't
> find the CSS file.

This is an acax file, so there is no head tag


> Also, how do you apply the style to the control? With a class, or with the
> control's ID?

With the cssClass attribute.

it seems random, somtimes it takes affect and sometimes does not. Its really
infuriating. Also, if I say put a panel on and drag the bottom down, you can
see the dimensions change and if you start the app it displays correctly,
but on the design canvass it appears much smaller.



>
> HTH,
> Laurent
> --
> Laurent Bugnion [MVP ASP.NET]
> Software engineering: http://www.galasoft-LB.ch
> PhotoAlbum: http://www.galasoft-LB.ch/pictures
> Support children in Calcutta: http://www.calcutta-espoir.ch



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I get the style sheets (or style object) of the wholedocument? Jake Barnes Javascript 6 04-12-2009 08:15 AM
Style sheets in a user control tshad ASP .Net 1 08-03-2007 07:35 PM
User Controls and Css Style sheets tshad ASP .Net 1 07-28-2006 01:37 AM
Style sheets, include one style within another (not inheritance) foldface@yahoo.co.uk HTML 1 11-24-2003 01:37 PM
export to Excel - multiple sheets & renaming sheets Carl Corcoran ASP General 1 11-12-2003 07:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57