Question

I am making a custom visual web part in Visual Studio 2010 and I am trying to add a editable CSS style sheet to it. What I mean is I want to make a property that the user can access through the edit web part menu. This property will be a text field that contains the CSS style sheet. The goal is to have the CSS Classes within the web part be adjustable at any time with out having to recompile and publish the web part.

has this been done? Can this be done? Any suggestions?

Was it helpful?

Solution 2

It was actually really simple. I just need to add a string property and then add that string to the style tag inside the page header.

OTHER TIPS

Why not deploy your CSS file to the Style Library. In this way you can update your CSS by uploading newer version of your css file directly to style library.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top