?
Solved

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

Posted on 2010-08-13
10
Medium Priority
?
557 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
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 2000 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 2000 total points
ID: 33441393
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

765 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