How do I create multi-layout website with asp.net?












-1















I need to create a website with different layouts (templates, themes). For example, as the CMS so you can load different themes that the manager will choose through the control panel. Where can I find a simple example project? I use asp.net webforms. Thanks in advance!










share|improve this question



























    -1















    I need to create a website with different layouts (templates, themes). For example, as the CMS so you can load different themes that the manager will choose through the control panel. Where can I find a simple example project? I use asp.net webforms. Thanks in advance!










    share|improve this question

























      -1












      -1








      -1








      I need to create a website with different layouts (templates, themes). For example, as the CMS so you can load different themes that the manager will choose through the control panel. Where can I find a simple example project? I use asp.net webforms. Thanks in advance!










      share|improve this question














      I need to create a website with different layouts (templates, themes). For example, as the CMS so you can load different themes that the manager will choose through the control panel. Where can I find a simple example project? I use asp.net webforms. Thanks in advance!







      asp.net layout webforms themes






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 15:00









      Piero92Piero92

      62




      62
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You can use multiple master pages to have different layouts.



          Also you can use the theming functionality from asp.net webforms.



          You can define themes for a single Web application, or as global themes that can be used by all applications on a Web server. After a theme is defined, it can be placed on individual pages using the Theme or StyleSheetTheme attribute of the @ Page directive, or it can be applied to all pages in an application by setting the element in the application configuration file. If the element is defined in the Machine.config file, the theme will apply to all pages in Web applications on the server.



          Page Themes



          A page theme is a theme folder with control skins, style sheets, graphics files and other resources created as a subfolder of the App_Themes folder in your Web site. Each theme is a different subfolder of the App_Themes folder. The following example shows a typical page theme, defining two themes named BlueTheme and PinkTheme.



          MyWebSite
          App_Themes
          BlueTheme
          Controls.skin
          BlueTheme.css
          PinkTheme
          Controls.skin
          PinkTheme.css


          Global Themes



          A global theme is a theme that you can apply to all the Web sites on a server. Global themes allow you to define an overall look for your domain when you maintain multiple Web sites on the same server.



          Global themes are like page themes in that they include property settings, style sheet settings, and graphics. However, global themes are stored in a folder named Themes that is global to the Web server. Any Web site on the server, and any page in any Web site, can reference a global theme.



          You can find more details here: https://msdn.microsoft.com/en-us/library/ykzx33wh.aspx






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264817%2fhow-do-i-create-multi-layout-website-with-asp-net%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You can use multiple master pages to have different layouts.



            Also you can use the theming functionality from asp.net webforms.



            You can define themes for a single Web application, or as global themes that can be used by all applications on a Web server. After a theme is defined, it can be placed on individual pages using the Theme or StyleSheetTheme attribute of the @ Page directive, or it can be applied to all pages in an application by setting the element in the application configuration file. If the element is defined in the Machine.config file, the theme will apply to all pages in Web applications on the server.



            Page Themes



            A page theme is a theme folder with control skins, style sheets, graphics files and other resources created as a subfolder of the App_Themes folder in your Web site. Each theme is a different subfolder of the App_Themes folder. The following example shows a typical page theme, defining two themes named BlueTheme and PinkTheme.



            MyWebSite
            App_Themes
            BlueTheme
            Controls.skin
            BlueTheme.css
            PinkTheme
            Controls.skin
            PinkTheme.css


            Global Themes



            A global theme is a theme that you can apply to all the Web sites on a server. Global themes allow you to define an overall look for your domain when you maintain multiple Web sites on the same server.



            Global themes are like page themes in that they include property settings, style sheet settings, and graphics. However, global themes are stored in a folder named Themes that is global to the Web server. Any Web site on the server, and any page in any Web site, can reference a global theme.



            You can find more details here: https://msdn.microsoft.com/en-us/library/ykzx33wh.aspx






            share|improve this answer




























              0














              You can use multiple master pages to have different layouts.



              Also you can use the theming functionality from asp.net webforms.



              You can define themes for a single Web application, or as global themes that can be used by all applications on a Web server. After a theme is defined, it can be placed on individual pages using the Theme or StyleSheetTheme attribute of the @ Page directive, or it can be applied to all pages in an application by setting the element in the application configuration file. If the element is defined in the Machine.config file, the theme will apply to all pages in Web applications on the server.



              Page Themes



              A page theme is a theme folder with control skins, style sheets, graphics files and other resources created as a subfolder of the App_Themes folder in your Web site. Each theme is a different subfolder of the App_Themes folder. The following example shows a typical page theme, defining two themes named BlueTheme and PinkTheme.



              MyWebSite
              App_Themes
              BlueTheme
              Controls.skin
              BlueTheme.css
              PinkTheme
              Controls.skin
              PinkTheme.css


              Global Themes



              A global theme is a theme that you can apply to all the Web sites on a server. Global themes allow you to define an overall look for your domain when you maintain multiple Web sites on the same server.



              Global themes are like page themes in that they include property settings, style sheet settings, and graphics. However, global themes are stored in a folder named Themes that is global to the Web server. Any Web site on the server, and any page in any Web site, can reference a global theme.



              You can find more details here: https://msdn.microsoft.com/en-us/library/ykzx33wh.aspx






              share|improve this answer


























                0












                0








                0







                You can use multiple master pages to have different layouts.



                Also you can use the theming functionality from asp.net webforms.



                You can define themes for a single Web application, or as global themes that can be used by all applications on a Web server. After a theme is defined, it can be placed on individual pages using the Theme or StyleSheetTheme attribute of the @ Page directive, or it can be applied to all pages in an application by setting the element in the application configuration file. If the element is defined in the Machine.config file, the theme will apply to all pages in Web applications on the server.



                Page Themes



                A page theme is a theme folder with control skins, style sheets, graphics files and other resources created as a subfolder of the App_Themes folder in your Web site. Each theme is a different subfolder of the App_Themes folder. The following example shows a typical page theme, defining two themes named BlueTheme and PinkTheme.



                MyWebSite
                App_Themes
                BlueTheme
                Controls.skin
                BlueTheme.css
                PinkTheme
                Controls.skin
                PinkTheme.css


                Global Themes



                A global theme is a theme that you can apply to all the Web sites on a server. Global themes allow you to define an overall look for your domain when you maintain multiple Web sites on the same server.



                Global themes are like page themes in that they include property settings, style sheet settings, and graphics. However, global themes are stored in a folder named Themes that is global to the Web server. Any Web site on the server, and any page in any Web site, can reference a global theme.



                You can find more details here: https://msdn.microsoft.com/en-us/library/ykzx33wh.aspx






                share|improve this answer













                You can use multiple master pages to have different layouts.



                Also you can use the theming functionality from asp.net webforms.



                You can define themes for a single Web application, or as global themes that can be used by all applications on a Web server. After a theme is defined, it can be placed on individual pages using the Theme or StyleSheetTheme attribute of the @ Page directive, or it can be applied to all pages in an application by setting the element in the application configuration file. If the element is defined in the Machine.config file, the theme will apply to all pages in Web applications on the server.



                Page Themes



                A page theme is a theme folder with control skins, style sheets, graphics files and other resources created as a subfolder of the App_Themes folder in your Web site. Each theme is a different subfolder of the App_Themes folder. The following example shows a typical page theme, defining two themes named BlueTheme and PinkTheme.



                MyWebSite
                App_Themes
                BlueTheme
                Controls.skin
                BlueTheme.css
                PinkTheme
                Controls.skin
                PinkTheme.css


                Global Themes



                A global theme is a theme that you can apply to all the Web sites on a server. Global themes allow you to define an overall look for your domain when you maintain multiple Web sites on the same server.



                Global themes are like page themes in that they include property settings, style sheet settings, and graphics. However, global themes are stored in a folder named Themes that is global to the Web server. Any Web site on the server, and any page in any Web site, can reference a global theme.



                You can find more details here: https://msdn.microsoft.com/en-us/library/ykzx33wh.aspx







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 14 '18 at 19:15









                Sergiu MuresanSergiu Muresan

                3146




                3146






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264817%2fhow-do-i-create-multi-layout-website-with-asp-net%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Full-time equivalent

                    Bicuculline

                    さくらももこ