Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question