MVC 4 Updating a partial view from another partial view using Ajax.BeginForm()

后端 未结 1 1439
我寻月下人不归
我寻月下人不归 2021-01-26 09:52

I have a comment section set up on one of my pages. The parent view has a partial view which shows the comments for that ID and gives the option to display another partial view

1条回答
  •  情歌与酒
    2021-01-26 10:12

    For now I have it changed. I wanted to the comments section to be hidden until the show comments was clicked. Then after posting a comment on the comments section was refreshed, but I couldn't get that to work. So just reloading the whole page will refresh the comments section, but make it hidden at that time. I made it so that the comments section shows by default without the option to hide it. So unless anyone can figure out a way to get it to work how I wanted, this works for now.

    0 讨论(0)
提交回复
热议问题