G
G
Ghoo2019-08-20 16:34:33
ASP.NET
Ghoo, 2019-08-20 16:34:33

How to make common code for all pages in ASP.NET (blank)?

How to make a common code for all pages on the ASP.NET framework (empty template)?
Writing the same code for each page is not very beautiful and not convenient.
Simply put, the source code of the base page (where the title is written, links to styles / scripts), as well as in the body
menu, which will be common to all pages.
Here is the code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style/style.css">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Сайт</title>
</head>
<body>
    <!--Меню тут (оно общее для всех страниц)-->

    <!--Контент (для каждой страницы разный контент-->
</body>
</html>

Please, do not throw links to info / videos with three thousand pages (I'm on 3g, which in turn is distributed from the phone, Google fumbling with such an Internet is not convenient, have respect), and if you throw it, it's better already site where everything is written.
PS And this is not impudence. If I were at home, where a normal Internet is a different matter, I would have rummaged through a bunch of pages, but due to the fact that I am now "isolated" from it - all hopes for your answers).
PSS Or is PHP suitable for all this crap :) ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bystrov, 2019-08-20
@Teshuhack

Master Page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question