Solved

Problem in class

Posted on 2009-05-17
2
186 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
Comment Utility
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
Comment Utility
Hi,

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now