PC Review


Reply
Thread Tools Rate Thread

CSS and controls

 
 
=?Utf-8?B?V2lsY28=?=
Guest
Posts: n/a
 
      22nd Aug 2006
LS,

When I create a web user control, add a label to it, apply a stylesheet and
set the CssClass property of the label, the designer shows the correct view.
But when I add this control to a web form, the style is lost.

Any ideas?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2lsY28=?=
Guest
Posts: n/a
 
      22nd Aug 2006
yes, in the head section:
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

Or do i need to work with themes?

"Augustin Prasanna" wrote:

> Have you placed the css stylesheet relative to the webform path?
>
> Regards,
> Augustin
> http://augustinprasanna.blogspot.com
>
> "Wilco" wrote:
>
> > LS,
> >
> > When I create a web user control, add a label to it, apply a stylesheet and
> > set the CssClass property of the label, the designer shows the correct view.
> > But when I add this control to a web form, the style is lost.
> >
> > Any ideas?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski Microsoft ASP .NET 4 5th Sep 2007 04:27 AM
Why the properties of web user controls which inherted from my custom base UI controls MISSED? ABC Microsoft C# .NET 0 21st Nov 2005 04:08 AM
Message box breaks owner draw controls in .NET controls used as ActiveX controls (again) Clive Dixon Microsoft Dot NET Framework Forms 0 26th May 2004 10:15 AM
Multiple controls with the same ID '_ctl24' were found. Trace requires that controls have unique IDs Jeff Tolman Microsoft ASP .NET 0 4th Nov 2003 09:53 PM
How to force the child controls OnClick event before the parent controls CreateChildControls method? Arulraja Microsoft ASP .NET 3 17th Oct 2003 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 AM.