Ich habe eine CSS-Datei in meinem Ordner App_Themes - wie kann ich es auf meine Web-Benutzersteuerung anwenden?

StackOverflow https://stackoverflow.com/questions/2926471

Frage

Jede Hilfe? Ich kann nicht scheinen, um es herauszufinden.

War es hilfreich?

Lösung

I am not sure if I understand you question correctly (as often if the title of the question is longer than the text...). But if you are trying to apply a skin to a custom control the following links might help.

Themes for Custom Controls in ASP.NET and ASP.NET 2.0 Themes and Custom Controls.

It comes down to have a <%@ Register TagPrefix=... directive in your skin file.

Regular CSS files are not "applied by you", I would say. The browser "just applies them". So if your control outputs HTML that references a style that exists in you CSS you are OK (check the source of the rendered page maybe?).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top