Partial View is not rendering in ASP.NET MVC

ika palad 86 Reputation points
2022-01-04T20:05:59.817+00:00

I'm trying to use an Ajax call to load in partial views on click of a row within the grid however it seems the partial view is not rendering.

Sorry, I can only use image to post my problem I'm having difficulty accessing the page

(Use right click and view in new tab to read the image clearly)

Index.cshtml

162574-image.png

editpartial.cshtml

162548-image.png

Developer technologies | ASP.NET | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,096 Reputation points
    2022-01-05T03:28:12.14+00:00

    Hi @ika palad ,
    Do you call the method in the controller using ajax? You could debug and break points at the method and check if you have run the method. Note, your method name must match with ajax url. If you still find your problems,you could post your codes to us. It helps us to solve your problems.

    Best regards,
    Yijing Sun


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. AgaveJoe 30,126 Reputation points
    2022-01-05T18:54:53.213+00:00

    SyncFusion is a paid for framework. Most folks on this forum do not have SyncFusion license and cannot test your code. Also, the code you shared is missing relevant content the community needs to perform an accurate code review. Does #dialogTemp exist? Does /Home/editpartial return the expected HTML? Does the editpartial action have a "value" parameter? Is the value parameter populated as expected? Is the DialogTemplateModel populated as expected in the action? Are there any error in the dev tools console?

    Anyway, these are items you can troubleshoot using standard tools; the Visual Studio debugger and the browser's dev tools.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.