Saturday, January 16, 2010

Skins Database Kitty C# StyleSheet Object?

C# StyleSheet Object? - skins database kitty

Hello everyone,

I am developing some asp.net pages where I am building components on the fly. "The two components are UltraWebTab I control UltraWebList and Infragistics. In tabs I put the plates, photos, create items, etc. to the content a database.

I wish that these components of the skin with style sheets cascade, which I created. The problem I'm in the form of import and use of style sheets cascade with C #. I Infragistics examples show that the inclusion of style sheets in the aspx code in May, but want to configure the skin through an XML file to pass the name of the skin at a later date.

If someone could tell me to use the class to import / CSS files included you would be very grateful. Code snippets or links to examples would be greatly appreciated.

Thanks in advance

Jools

2 comments:

Smutty said...

Interesting work you do.

You should use. NET 1.1, because the skins already logged NET 2.0 to be implemented.

Anyway, back to the Framework 1.1. href attribute is the name of the compound are determined at runtime, so using simple data binding.

1) In the aspx use the following syntax
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; LINK REV = "stylesheet" type = "text / css" rel = "stylesheet"
href = "\\ \\ \\ \\ \\ \\ \\ \\ u0026lt; SelectedStyleSheet% #%>">

In the code-behind file:
1) declare SelectedStyleSheet protected as a string - it does not work if your private
2) Adjust the former SelectedStyleSheet Duration:
protected string SelectedStyleSheet = ". / css style /";
3) the site link (we use simple data binding in the ASPX page, if you have noticed, u0026lt instead of \\ \\ \\ \\ \\ \\ \\ \\,%% =>:
this.DataBind ();

Best regards

techstat... said...

Try this http://www.developerfusion.co.uk/show/38 ...

Post a Comment