How can I create an ASP.NET website laying off a style / theme?

I need to create a prototype for an intranet website, and I want to focus on usability (layout, navigation, etc.) and leave the theme for later (I have a very bad taste, so this will probably be done by someone still )

I know about the ability of ASP.NET to instantly switch themes, but how do I need to create WebForms to make it easier?

  • Should I create controls with a class attribute indicating what will be in the future css?
  • Or am I just creating controls without worrying about it, and is it easy to handle when we create a theme?
+3
source share
4 answers

ASP.NET, . ( , gridviews ..), , .NET them.

, MasterPage, , CSS, .

. , , , .

+2

CSS. , ; Microsoft , . CSS, , , - .

- , , "" , . CSS , , , div CSS, ,

     <div class="ButtonContainer">
       <asp:linkbutton runat="Server" cssclass="Button Cancel" command="Save" text="Save" />
       <asp:linkbutton runat="Server" cssclass="Button Save" command="Cancel" text="Cancel" />
     </div>

CSS, , , div . , , ASP.NET, divs, span , , .

+2

, , , - (, , , , , .NET). CssClass ASP.Net . , , CSS ( HTML JavaScript).

Another developer I work with prefers to do everything with Microsoft using skins and page directives and so on. This is probably the best way to do this, but it seems to me that this will mix the presentation in the middle and at the end of the application too much.

+1
source

just wrap the controls in a div. facilitate layout / style at the end

-1
source

Source: https://habr.com/ru/post/1697531/


All Articles