Solved

Problem in class

Posted on 2009-05-17
2
190 Views
Last Modified: 2013-11-08
Hi

I have created a web custom control

I have defined a property called MTCClass this property is equivalent to CssClass property

Now I am using this control on an .aspx page

Now I declare the css class in the head section

<style type="text/css">
        .Test
        {
              color : Red
        }
    </style>

and I am using this css class in control
 <FTB:MultiPurposeTextControl ID="karan122"  MTBCssClass="Test"   runat="server">
        </FTB:MultiPurposeTextControl>

I can see the red color of the text

but when I declare the css class inside the .css file and referencing the class  like
<link rel="Stylesheet" type="text/html" href="Stylesheet1.css" />

then I am not able to see the red color in the textbox

Why is the behaviour


0
Comment
Question by:KaranGupta
2 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 500 total points
ID: 24409206
Hi KaranGupta,
Almost there, try refer this external CSS file as in way:
<LINK REL="Stylesheet" HREF="Stylesheet1.css" TYPE="text/css">
0
 
LVL 6

Expert Comment

by:M3mph15
ID: 24409219
Hi,

Where is the css file located? Is it directly in the same directory or is it in another sub folder?
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question