teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

マスターページ、コンテンツページのコメント追加

2021/12/14 14:17

投稿

CCraida
CCraida

スコア6

title CHANGED
File without changes
body CHANGED
@@ -4,9 +4,10 @@
4
4
 
5
5
  知っている方がいらっしゃったら教えていただきたいです。
6
6
  イメージとしては、下記の三枚目の<asp:Content>タグ内をプログラムで動的に作成したいです。
7
- ```html
7
+ ```ASP
8
8
 
9
9
  Site.Master
10
+ //マスターページ
10
11
  <body>
11
12
  <form id="form1" runat="server">
12
13
  <div>
@@ -17,9 +18,9 @@
17
18
  </body>
18
19
  ```
19
20
 
20
- ```html
21
+ ```ASP
21
22
  WebForm1.aspx
22
-
23
+ //コンテンツページ
23
24
  <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="fortest.WebForm1" %>
24
25
  <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
25
26
  </asp:Content>
@@ -28,8 +29,9 @@
28
29
 
29
30
 
30
31
  下記の内容を動的に作成したい。
31
- ```html
32
+ ```ASP
32
33
  WebForm1.aspx
34
+ //コンテンツページ 
33
35
  <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="fortest.WebForm1" %>
34
36
  <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
35
37
  <h1>この行や下のボタンコントロールを動的に作成したい</h1>