Solved

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

Posted on 2010-08-13
10
555 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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