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

質問編集履歴

4

コードの修正

2018/07/03 04:51

投稿

nepia
nepia

スコア30

title CHANGED
File without changes
body CHANGED
@@ -102,7 +102,7 @@
102
102
  {
103
103
  public ActionResult Index()
104
104
  {
105
- TestViewModel = new TestViewModel ();
105
+ TestViewModel model = new TestViewModel ();
106
106
  model.SetSystemList();
107
107
  return View(model);
108
108
  }

3

Viewの名称を追加

2018/07/03 04:51

投稿

nepia
nepia

スコア30

title CHANGED
File without changes
body CHANGED
@@ -9,18 +9,18 @@
9
9
  プロジェクトテンプレート : MVCを指定
10
10
  実行環境 : IIS(Visual Studioでの実行時)
11
11
  Ajax.BeginFormを使用する為の参照設定 : NuGet => Microsoft.jQuery.Unobtrusive.Ajax 3.2.5
12
+ JQueryの読込も正しく行っております。
12
13
 
13
14
  現在、以下のソースにて、問題が発生しております。
14
15
 
15
- View
16
+ Test/Index.cshtml
16
17
  ```cshtml
17
18
  <div>
18
19
  @Html.Partial("_List", Model)
19
20
  </div>
20
21
  ```
21
22
 
22
- 部分View
23
+ Test/_List.cshtml
23
-
24
24
  ```cshtml
25
25
  @using BootstrapSite1.Models.Test
26
26
  @model TestViewModel

2

ソースについて、不要な箇所の修正

2018/07/03 04:49

投稿

nepia
nepia

スコア30

title CHANGED
File without changes
body CHANGED
@@ -8,6 +8,7 @@
8
8
  Visual Studioプロジェクト : ASP.NET Web Application(.NET FrameWork)
9
9
  プロジェクトテンプレート : MVCを指定
10
10
  実行環境 : IIS(Visual Studioでの実行時)
11
+ Ajax.BeginFormを使用する為の参照設定 : NuGet => Microsoft.jQuery.Unobtrusive.Ajax 3.2.5
11
12
 
12
13
  現在、以下のソースにて、問題が発生しております。
13
14
 
@@ -58,8 +59,6 @@
58
59
 
59
60
  Model
60
61
  ```C#
61
- using BootstrapSite1.Utility.Convert;
62
- using BootstrapSite1.Utility.Database;
63
62
  using System.Collections.Generic;
64
63
  using System.Data;
65
64
  using System.Text;
@@ -93,8 +92,6 @@
93
92
 
94
93
  Controller
95
94
  ```C#
96
- using BootstrapSite1.Models.Test;
97
- using BootstrapSite1.Utility.Database;
98
95
  using System.Collections.Generic;
99
96
  using System.Linq;
100
97
  using System.Web.Mvc;

1

タグと環境について、修正させて頂きました

2018/07/03 01:29

投稿

nepia
nepia

スコア30

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,14 @@
1
1
  いつもお世話になっております。
2
2
  ASP.NET MVCの部分ビューの動的更新について、皆様のお力をお貸しいただきたいです。
3
3
 
4
+ 開発環境
5
+ OS : Windows10
6
+ .NET FrameWork : 4.5.2
7
+ Visual Studio : 2015 Professonal
8
+ Visual Studioプロジェクト : ASP.NET Web Application(.NET FrameWork)
9
+ プロジェクトテンプレート : MVCを指定
10
+ 実行環境 : IIS(Visual Studioでの実行時)
11
+
4
12
  現在、以下のソースにて、問題が発生しております。
5
13
 
6
14
  View