Solved

Problem in class

Posted on 2009-05-17
2
194 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert VB web project to C# 3 62
Learning About The VB.NET TableLayoutPanel Control 5 39
CSS question 16 59
history of pages 7 47
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 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