{"id":20215246,"url":"https://github.com/janluksoft/net_masterpages_usercontrols","last_synced_at":"2026-05-10T11:50:47.518Z","repository":{"id":220213664,"uuid":"745584550","full_name":"janluksoft/Net_MasterPages_UserControls","owner":"janluksoft","description":"ASP.NET WebForm page using the Master-Pages and  User-Controls technique to create uniform web page templates","archived":false,"fork":false,"pushed_at":"2024-01-19T16:57:06.000Z","size":293,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T21:44:56.308Z","etag":null,"topics":["ascx","aspx","c-sharp","dotnet","master-pages","user-controls","visual-studio"],"latest_commit_sha":null,"homepage":"","language":"ASP.NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janluksoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-19T16:49:10.000Z","updated_at":"2024-01-31T20:07:01.000Z","dependencies_parsed_at":"2024-01-31T22:25:57.053Z","dependency_job_id":"f6ae7211-7619-4f5b-bf0d-2c4f51da865f","html_url":"https://github.com/janluksoft/Net_MasterPages_UserControls","commit_stats":null,"previous_names":["janluksoft/net_masterpages_usercontrols"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNet_MasterPages_UserControls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNet_MasterPages_UserControls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNet_MasterPages_UserControls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNet_MasterPages_UserControls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janluksoft","download_url":"https://codeload.github.com/janluksoft/Net_MasterPages_UserControls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241652964,"owners_count":19997578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascx","aspx","c-sharp","dotnet","master-pages","user-controls","visual-studio"],"created_at":"2024-11-14T06:20:42.292Z","updated_at":"2026-05-10T11:50:42.487Z","avatar_url":"https://github.com/janluksoft.png","language":"ASP.NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebForm page with Master-Pages\n\nThis WebForm page demonstrates using the Master-Pages technique to create uniform web page templates\n\n## The idea of Master-Pages\n\nIt is often necessary for each of the many pages of a website to have a similar main layout: menu, title bar, footer, logo, which are unchanged for all subpages, and in one place, a window with content that changes for each subpage.\nIn the past, developers created consistent websites using custom controls, CSS, JavaScript and it was difficult.\nThat is why the following techniques were created: Razor-Page and the Master-Page described above.\n\n![](PWebAppMaster/Image/MasterPares3.png)\n\n## Description of Master-Pages:\n\nMaster Pages are used when user needs a consistent look and behavior over all web pages in an application. Master pages provide a template for all other pages in an application.\n\n![](PWebAppMaster/Image/Master_schema2.png)\n\nThe master pages define placeholders for the content, which are overridden for the content. The result is combination of master and content page. Every master page has one or more content pages in an application.\n\n\n## The advantages of the master page\n\n- They provide an object model allowing users to customize the master page from the individual content pages.\n- They allows user design the rendering of the controls in the placeholder\n- It is centralized with common functionality of all pages to makes updates in one place\n- Code can be applied on one set of controls and the results to the set of pages in the application\n\n## User Control\n\nA user control is a kind of composite control that works much like an ASP.NET \nWeb page — you can add existing Web server controls and markup to a user control,\nand define properties and methods for the control. You can then embed them in \nASP.NET Web pages, where they act as a unit.\n\n\tThe 'green' control defined in the file [WebUserControl1.ascx] attached to the current page [About.aspx]. \n    We can use UserControl in many places without \n    writing the same code again. For example, you can make a user control that has a label \n    and its text. We can drag and drop this control on any form and we will be able to see this label. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanluksoft%2Fnet_masterpages_usercontrols","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanluksoft%2Fnet_masterpages_usercontrols","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanluksoft%2Fnet_masterpages_usercontrols/lists"}