Solved

Problem in class

Posted on 2009-05-17
2
193 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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