-
Ciao
dovrei fare una master page annidiata all'interno di un'altra.
Mi spiego meglio:
ho un menù che vorrie inserire all'inteno di una master page annidata.- ho creato la master page generale del sito, quella che mi definisce il template
Codice:
[LEFT][SIZE=2]<%[/SIZE][SIZE=2][COLOR=#0000ff]@[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]Master[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Language[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="VB"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]AutoEventWireup[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="false"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]CodeBehind[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="template.master.vb"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Inherits[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="sitoidsistemi.template"[/COLOR][/SIZE][SIZE=2] %>[/SIZE] [/LEFT][LEFT][SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]table[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]border[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="0"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="tab_bord">[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]colspan[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="2"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]></[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]colspan[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="2"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]valign[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="top"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="row_bord"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000] [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="menu"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]style[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="height: 616px"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]asp[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]:[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]ContentPlaceHolder[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]ID[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="menu1"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]runat[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="server">[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]asp[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]:[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]ContentPlaceHolder[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="contenuto"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]style[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="height: 616px"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]asp[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]:[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]ContentPlaceHolder[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]ID[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="contenuto2"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]runat[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="server">[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]asp[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]:[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]ContentPlaceHolder[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]colspan[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="2"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="bordo"></[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]colspan[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="2"[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="sot">[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]br[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]td[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]tr[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE] [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]table[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/LEFT]e le relative page che vanno a incrementare solo il campo "ContentPlaceHolder ID="contenuto2" mentre per il campo
ContentPlaceHolder ID="menu1vorrei inserire un'altra master page che faccia riferimento alla page menu.aspx
Qualcuno potrebbe spiegarmi il procedimento per raggiungere questo risultato
elena
-
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi