Solved

style sheet file relation with an aspx page in VS 2008? How to?

Posted on 2010-08-13
10
554 Views
Last Modified: 2013-11-26
Hi there;

I was following an online training and in the training, the guy explaining selects the stylesheet for his use as in the shot 1.

When I try to do the same thing, I failed because there is no section to select my css file as in the shot 2.

The guy was using VS 2005 Express whereas I am using VS 2008, sometimes 2010.

How can I relate the style sheet file with an aspx page in VS 2008?

Best regards.
stylesheetproblem1.jpg
stylesheetproblem2.jpg
0
Comment
Question by:jazzIIIlove
[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
  • 6
  • 4
10 Comments
 
LVL 8

Expert Comment

by:Fareed Ali Khan
ID: 33435173
Hi,

You can't add stylesheet file in the class. StyleSheet (CSS file) can be linked up with the page through this:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Login To Munjee</title>
	<LINK href="~/StyleSheet.css" type="text/css" rel="stylesheet">
</head>
<body>
</body
</html>

Open in new window

0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 33436023
But the guy in video is selecting a stylesheet and I haven't got that menu. AM I missing stg?

Best regards.
0
 
LVL 8

Expert Comment

by:Fareed Ali Khan
ID: 33436201
Please let me know the video link.
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 12

Author Comment

by:jazzIIIlove
ID: 33436407
0
 
LVL 8

Expert Comment

by:Fareed Ali Khan
ID: 33439320
Hi,

I don't have the License of LearnVisualStudio.com. But i verified the your problem and found that you can add style sheet through design view as well. Following are the steps:

- First select the page.
- The scroll down the property window.
- Select the StyleSheet property.
- Press the browser (...) button.
- Select your style sheet and press ok button.

Note: Select Page means in the properties window shows the Document object. Not any other control name. This will happen only when you click on the pages white background.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 33440592
ok, thanks for the detailed explanation.

the problem is:
I select the page Default.aspx in design view, I clicked the white background but the still I have no property as StyleSheet property.

Could you check the screenshot and verify me?

Regards.
nostylesheetselection.jpg
0
 
LVL 8

Expert Comment

by:Fareed Ali Khan
ID: 33440657
You can see my image which shows you the stylesheet and the document selected in properties.

Also i need the page source code so i can verify it as well.
VS2005CSS.JPG
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 33440885
very interesting. I have that property missing in my VS 2008. Check the shot.
missing.jpg
0
 
LVL 8

Accepted Solution

by:
Fareed Ali Khan earned 500 total points
ID: 33441390
Hi,

In Visual Studio 2008, Microsoft introduce the new Manage Style Tool window. You can manage style sheet files and their classes through this tool window. For further reference read the following link:

http://weblogs.asp.net/scottgu/archive/2007/07/25/vs-2008-web-designer-and-css-support.aspx
0
 
LVL 8

Assisted Solution

by:Fareed Ali Khan
Fareed Ali Khan earned 500 total points
ID: 33441393
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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