473,508 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

user controls and style sheets

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 ?
Jan 14 '07 #1
2 1308
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
Jan 14 '07 #2
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

Jan 14 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3179
by: Phil Thompson | last post by:
does it matter in which order i place different style sheets i.e. <link rel="stylesheet" type="text/css" media="screen" href="style/screen.css" /> <link rel="stylesheet" type="text/css"...
6
9367
by: Arjen | last post by:
Hello, I have some web user controls that use some style sheets for them self. Now what is the best way? - Add everything in one css file? - Or create a css file for each web user control? ...
7
10887
by: Don Wash | last post by:
Hi There! I'm creating several ASCX Controls and those controls will have their own CSS Style Sheets. But I don't know how I can link the corresponding Style Sheet in the ASCX file? Because the...
1
1379
by: tshad | last post by:
If I have a User Control with tables in it and a Css Style sheet defined in the .aspx file - will the style sheet apply to the User Control (.ascx file)? If that is the case, if I have a style...
3
5164
by: Daniel Greene | last post by:
Dear web writers, My lucky web visitors who are using certain browsers can select one of my style sheets out of a list, and see how my pages change "before their very eyes." Cool! But what if...
1
1686
by: mscertified | last post by:
Can anyone explain how references to style sheets work, I've exhausted looking in help, its all so confusing. I have three style sheets in my project under 'Style Sheets'. Only the first style...
7
1969
by: WT | last post by:
Hello, It seems that when a control is set into a ContentPlaceHolder in a page using a MasterPage, it's id is change and FindControl(ID) no more works, is it normal, how to override this or...
1
1468
by: tshad | last post by:
External and Internal CSS Style sheets are supposed to only be in the Head section of a page. What about User Controls where there is no head section but you want to be able to load a special...
5
10483
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a machine running IIS 6.0. I just replaced the web.config and several aspx pages in the application and now the style sheets are not working. the images from the themes work but not the css...
0
7128
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7332
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,...
1
7058
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
7502
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...
0
5635
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,...
1
5057
isladogs
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...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
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 ...
0
426
bsmnconsultancy
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...

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.