Solved

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

Posted on 2010-08-13
10
545 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

23 Experts available now in Live!

Get 1:1 Help Now