473,587 Members | 2,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

linking Style sheet in User control

Hi

I want to use the <link href="...." type="..."> tag inside the .aspx file.
This style is used by the user control (converting an existing aspx file to
ascx file) which are added to this aspx page.
Please tell me where to put it. It is not working properly now.

Thanks

Bhuvanesh

Nov 19 '05 #1
4 6862
Hi

I was using <link href="...." type="..."> tag inside the .aspx file.

When I converted this aspx file to ascx file and use it in an aspx file it
is not working properly.

Please tell me where to put it.

Thanks

GB
Nov 19 '05 #2
"Gopalan" <go************ ***@btinternet. com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl...
I was using <link href="...." type="..."> tag inside the .aspx file.

When I converted this aspx file to ascx file and use it in an aspx file it
is not working properly.

Please tell me where to put it.


Could it be that the aspx file that you've added your contol into is not at
the same level of the web folder structure relative to the web root...?
Nov 19 '05 #3
Hi again

Yes

1. the new aspx file is in the root level
2. ascx files are in a subfolder from the root
3. css files are in another subfolder from the root

This is the basic structure I want to maintain to group different types of
files.

Please tell me where I have to change in the code, or any other alternative
method? (one thing I can do is inline style for the ascx file, but it is
tedious to maintain the look and feel in all pages like this)
Thanks
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O8******** ******@TK2MSFTN GP14.phx.gbl...
"Gopalan" <go************ ***@btinternet. com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl...
I was using <link href="...." type="..."> tag inside the .aspx file.

When I converted this aspx file to ascx file and use it in an aspx file
it is not working properly.

Please tell me where to put it.


Could it be that the aspx file that you've added your contol into is not
at the same level of the web folder structure relative to the web root...?

Nov 19 '05 #4
"Gopalan" <go************ ***@btinternet. com> wrote in message
news:O4******** ******@TK2MSFTN GP09.phx.gbl...
Please tell me where I have to change in the code, or any other
alternative method? (one thing I can do is inline style for the ascx file,
but it is tedious to maintain the look and feel in all pages like this)


http://dotnetjunkies.com/WebLog/jpal.../06/31227.aspx
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3946
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but unfortunately restrictions on the architecture may this unfeasible. With the LINK tag I could use that but I understand older browsers dont support it properly. I will only ever have 2 style sheets. Is there a way to link one style sheet to...
1
2255
by: blue | last post by:
My app draws a bunch of tables on the page and has a form for the user to enter data and submit. The form is contained within a User Control called DecisionCtl. When they submit the form, a bunch of db updates are performed and then page needs to be redrawn with the new table that is generated from the data they entered. After the DB updates, the DecisionCtl bubbles an event up to its container (the Page). The OnBubbleEvent removes...
7
10892
by: Don Wash | last post by:
Hi There! I'm creating several ASCX Controls and those controls will have their own CSS Style Sheets. But I don't know how I can link the corresponding Style Sheet in the ASCX file? Because the style sheet can only be linked in the <head></head> section of an HTML document, right? So ASCX controls does not have <head> tags so how can I link the style sheets? Many thanks in advance! Don
3
1781
by: Chris | last post by:
Hi I have another style sheet question: We effectively have a page that has two text boxes on it. We would like one text box to be in one style and the other text box to be in another style. The problem is we would like the user to be able to control the styles using style sheets. Is there anyway around this without hard coding the styles into the page?
7
1570
by: Nathan Sokalski | last post by:
I have user controls that contain a link to a stylesheet. Several of my pages also have a link to this same stylesheet. Because of this, the resulting output contains multiple links to the same stylesheet. Although this does not cause any harm as far as how the page looks, it is unnecessary and makes the download take slightly longer. Is there any easy way to avoid having the same stylesheet link added multiple times? Thanks. -- Nathan...
1
1978
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. Search "Amanda H." in this group and you can view my last post to see the original PHP and html junk. This below is the updated link rel and the meta tags. Before, it wouldn't refresh or change in Opera, Firefox, or IE6/Win & IE5/Mac. The...
1
1384
by: tshad | last post by:
If I have a User Control with tables in it and a Css Style sheet defined in the .aspx file - will the style sheet apply to the User Control (.ascx file)? If that is the case, if I have a style sheet in the User Control, will that override the outside sheet? Thanks, Tom
2
5696
by: mjansen.merge.emed | last post by:
Is there a way to override inline within the <bodya style of an element but not do it with a style attribute on the element? I know CSS Inheritance works for some styles, but doesn't appear to work for margins, etc. Here's my delimma: I'm generating HTML. I don't have access to the <head>. In the <head> is a stylesheet that defines a style for <p>. I have HTML I am wrapping around other generated HTML (that I don't have access to)...
4
5628
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got around this problem I discovered that they're using Animations. I don't want to bloat my control with the Ajaxtoolkit's Animation stuff though. I guess I should tell you what the problem is. I have a TabStrip custom control. It's a Table that has...
0
7857
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8220
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8352
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8222
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6632
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5723
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5396
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2367
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1194
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.