[RESOLVED] adding css file to Class Library Project
Hi Guys,
I have a custom gridview control which is a class library project.
I want to be able to specify the css class for the gridview which I can do.
But I also want to set a default css stylesheet to the gridview. So if I don't override it using the cssclass property it must get it's cssclass from the default stylesheet I have in my project.
How can I specify the default stylesheet. I have a stylesheet in a folder called "Styles" in my project.
Re: adding css file to Class Library Project
Hey,
Am I not right in saying that you can specify the CssClass property in your code? You could first check to see if the CssClass property of the GridView has a value, i.e. the user has set it in the ASPX markup, and if they haven't assign the default value that you want to use.
Gary
Re: adding css file to Class Library Project
hey gary,
you are right. but I need to embed the css file as a resource. then reference it. I looked at this example but it is done is VS2005
http://blogs.msdn.com/b/coding4fun/a...5/2429765.aspx
he speaks about WebResource. I don't see an AssemplyInfo file in my class library project.
How can I do that in VS2008. If I add the css file as a resource, how can I then get access to a certain css class in my custom controls code??
Re: adding css file to Class Library Project
Re: adding css file to Class Library Project
Hey,
Does that mean that you have got the problem solved?
If so, remember to mark resolved :)
Gary