47
Mới! Lưu câu hỏi hoặc câu trả lời và sắp xếp nội dung yêu thích của bạn. Tìm hiểu thêm.
Learn more.
Tôi muốn cập nhật giá trị mô hình trong JavaScript như dưới đây nhưng nó không hoạt động.
function updatePostID[val]
{
@Model.addcomment.PostID = val;
}
trong chế độ xem dao cạo như hình dưới đây
foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
Bất cứ ai có thể cho tôi biết làm thế nào để gán giá trị mô hình trong javascript?
Jason Berkan
8.6456 Huy hiệu vàng29 Huy hiệu bạc39 Huy hiệu Đồng6 gold badges29 silver badges39 bronze badges
Hỏi ngày 23 tháng 4 năm 2013 lúc 16:24Apr 23, 2013 at 16:24
Điều này sẽ hoạt động
function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
Sau đó có một trường ẩn hoặc điều khiển khác cho PostID
@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
Đã trả lời ngày 23 tháng 4 năm 2013 lúc 16:51Apr 23, 2013 at 16:51
CodingBizCodingBizcodingbiz
25.8k8 Huy hiệu vàng55 Huy hiệu bạc93 Huy hiệu Đồng8 gold badges55 silver badges93 bronze badges
3
Mô hình [@Model
] chỉ tồn tại trong khi trang đang được xây dựng. Khi trang được hiển thị trong trình duyệt, tất cả những gì tồn tại là HTML, JavaScript và CSS.
Những gì bạn sẽ muốn làm là đặt postid vào một trường ẩn. Vì giá trị postid được cố định, thực sự không cần JavaScript. Một @HtmlHiddenFor
đơn giản sẽ đủ.
Tuy nhiên, bạn sẽ muốn thay đổi vòng lặp foreach của mình thành một vòng lặp. Giải pháp cuối cùng sẽ trông giống như thế này:
for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
Đã trả lời ngày 23 tháng 4 năm 2013 lúc 16:25Apr 23, 2013 at 16:25
Jason Berkanjason BerkanJason Berkan
8.6456 Huy hiệu vàng29 Huy hiệu bạc39 Huy hiệu Đồng6 gold badges29 silver badges39 bronze badges
2
Hỏi ngày 23 tháng 4 năm 2013 lúc 16:24jQuery and an Ajax call to post the specific update back to your server with Javascript.
Điều này sẽ hoạt động
function updatePostID[val, comment]
{
var args = {};
args.PostID = val;
args.Comment = comment;
$.ajax[{
type: "POST",
url: controllerActionMethodUrlHere,
contentType: "application/json; charset=utf-8",
data: args,
dataType: "json",
success: function[msg]
{
// Something afterwards here
}
}];
}
Sau đó có một trường ẩn hoặc điều khiển khác cho PostID
Apr 23, 2013 at 17:01
Đã trả lời ngày 23 tháng 4 năm 2013 lúc 16:51Dan Esparza
CodingBizCodingBiz28 gold badges101 silver badges124 bronze badges
Marc đã hỏi vào ngày 24 tháng 10 năm 2018, & NBSP; 10: 04 AM24 Oct 2018, 10:04 AM
Tôi khá mới đối với MVC [và phát triển web nói chung] và tôi tiếp tục bắt gặp một số 'gotchas' dẫn đến hành vi bất ngờ. Tôi đang sử dụng Kendo UI cho ASP.NET MVC, tuy nhiên tôi chắc chắn 99% rằng vấn đề của tôi là do sự thiếu hiểu biết của tôi về JavaScript hoặc MVC thay vì bất cứ điều gì để làm với Kendo. Bạn sẽ có thể tái tạo vấn đề bằng cách sử dụng mã sau:
You should be able to reproduce the problem using the following code:
Models:
public
0 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
1foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
6 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
public
6 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
5function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
5function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
2@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
public
2@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
9@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
public
9@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
5for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
5for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
0 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2function updatePostID[val, comment]
{
var args = {};
args.PostID = val;
args.Comment = comment;
$.ajax[{
type: "POST",
url: controllerActionMethodUrlHere,
contentType: "application/json; charset=utf-8",
data: args,
dataType: "json",
success: function[msg]
{
// Something afterwards here
}
}];
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
6 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
public
6
foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
5function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
PostID
6
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
2@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
@Model
4
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
9@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
@HtmlHiddenFor
2
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
5for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
@HtmlHiddenFor
9
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7
for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
Controller:
public
0 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2function updatePostID[val, comment]
{
var args = {};
args.PostID = val;
args.Comment = comment;
$.ajax[{
type: "POST",
url: controllerActionMethodUrlHere,
contentType: "application/json; charset=utf-8",
data: args,
dataType: "json",
success: function[msg]
{
// Something afterwards here
}
}];
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
PostID
6
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
public
05foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
@Model
4
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
09foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
11foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
4 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
@HtmlHiddenFor
2
8foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
9foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
1function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
13 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
14foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7
for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
18foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
18foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
@HtmlHiddenFor
9public
21foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
25foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
25foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
____10 public
8
29 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
30foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
31foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
32foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
34foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
35foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
36foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
34foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
35foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
36foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
28foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
38foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
38foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
34foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
41foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
36foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
34foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
41foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
36
foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
05foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
13 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
45foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
46foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
36foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
51foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
51foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
09foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
11foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
13 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
56foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
View:
63foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
65foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66
foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
68foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
13 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
14foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
72 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
73foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
75 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
76foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
78 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
79foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
82foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
83foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
82foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
82foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
83foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
82foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
68foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
90foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
93foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
93foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
01function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
01
function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
public
21foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
12 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
15 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
16function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
18function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
19function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
20 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
23function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
83foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
20function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
26function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
12function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
30function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
30function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
32function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
32function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
34function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
34function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
36function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
36
function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
38function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
38function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
39function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
40function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
40function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
39function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
32foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
32foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
44function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
44function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
32foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
32foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
28foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
29 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
30foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
31foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
32foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
53 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
54function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
56 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
57function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
59 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
79foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
90foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66
foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
65foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
28foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
13 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
45foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
46foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
36foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
83function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
83function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
87function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
88function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
87function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
87function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
88function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
87function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
20function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
94function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
20function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
20function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
94function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
20function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
53 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
54function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
73__foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
53 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
54function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
73foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
05
@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
57function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
08 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
79foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
53 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
54function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
73__foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
53 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
54function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
73foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
18 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
57function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
21 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
79foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
53 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
54function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
73__foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
53 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
54function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
02 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
73foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
31 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
57function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
34 @Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
79foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
70function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
70function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66
foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
46@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
48@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
48@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
50@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
50@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
52@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
52@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
54@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
54@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
56@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
56@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
56@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
58@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
60@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
60@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
62@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
62@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
66
@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
68@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
68@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
70@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
70@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
72@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
72@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
74@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
76@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
76@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
77@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
78@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
80@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
80@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
70@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
70@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
72@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
72@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
86@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
88@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
88@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
77@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
70function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
DemopartyDetails Mẫu biên tập
93@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
94@Html.Hidden["PostID", Model.addcomment.PostID]
//OR
@Html.HiddenFor[model => model.addcomment.PostID]
3foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
06for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
07for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
06for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
06for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
07for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
06for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
11for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
11
for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
13for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
13for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
15for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
15for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
17for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
17for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
19for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
19for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
11for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
11for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
23for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
23for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
25for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
25for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
27for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
27for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
33foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
29for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
29for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66
foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
35for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
35for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
37for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
37for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
39for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
39for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
41for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
41for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
47for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98 foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
47for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
12 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
54 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
16__function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
12 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
54 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
16function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
57for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
19function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
20 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
62for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
83foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
20function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
83foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
12function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
12 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74______473foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
64foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
12
function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
73 for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
16function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
57for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
19function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
20 function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
0foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
74foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
81for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
83foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
20function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
83foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
12function updatePostID[val]
{
document.getElementById['PostID'].value = val;
//and probably call document.forms[0].submit[];
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
4foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
2foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
86foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
98foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
66foreach[var post in Model.Post]
{
Posted by : @post.Username
@post.Content
if[Model.loginuser == Model.username]
{
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
7for [int i = 0 ; i < Model.Post; i++]
{
Posted by : @Model.Post[i].Username
@Model.Post[i].Content
if[Model.loginuser == Model.username]
{
@Html.HiddenFor[model => model.Post[i].PostID]
@Html.TextAreaFor[model => model.addcomment.Content]
Add Comment
}
}
Khi chạy mã này, tôi có thể nhấp vào nút để thêm một bên mới, mẫu biên tập viên xuất hiện như mong đợi và tôi nhấn nút 'nam', nơi điền vào trường giới tính với "M".
Sau đó, tôi điền vào hai trường còn lại bằng dữ liệu "kiểm tra" và "người" chung trước khi xác nhận mục nhập và sau đó nhấn gửi. Tuy nhiên, những gì tôi tìm thấy khi tôi đặt một điểm dừng ở bộ điều khiển là mô hình được chuyển qua có giới tính được đặt thành NULL. Tên và họ ["Test" và "người"] được điền hoàn toàn. RandomData cũng được điền hoàn toàn như mong đợi.
What I find when I place a breakpoint at the controller however is that the model being passed through has the gender set to null. The first name and surname ["Test" and "Person"] are fully populated however. The randomData is also fully populated as expected.
Thật thú vị, nếu tôi quay lại và gõ thủ công một cái gì đó như "nam" vào lĩnh vực giới tính, thì bây giờ cũng được điền. Chỉ khi tôi cố gắng sử dụng JavaScript để đặt giá trị mà nó không có.
Mục tiêu cuối cùng là có một trường ẩn được tạo ra bởi JavaScript khi nhấn một nút, vì vậy nếu ai đó có thể chỉ ra sai lầm của tôi thì nó sẽ được đánh giá rất cao!