Solved

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

Posted on 2010-08-13
10
549 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
  • 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
 
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
A short film showing how OnPage and Connectwise integration works.

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now