Home Menu

I want to create a homepage for my already developed project. Since the project contains many forms, it is quite difficult to include the main page in each form ... Are there any possibilities to include the main page in any other simple way ...

Please give some advice.

Thanks in advance...

+3
source share
2 answers

As far as I know, there is no easy way to do this.

You need to manually add the main page to the page directive

<%@ Page MasterPageFile="~/Masterpage.master" ... %>

add relevant sections of the content around the layout of your pages:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>

and remove tags <html>, <head>, <body> and <form>from each page.


Update

- ( ) , html aspx . , .

+1

, @geoff. , . - (, , , , , ) . , 1 . , . -.

, , , . UserControls MasterPages ParentForm, , Init , ( Intellisense) . , , , ... . this.ParentForm.

, MasterPages , "" , " ".

0

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


All Articles