how to display another page in modal and then post to that page?

mc 3,701 Reputation points
2023-01-18T09:14:42.93+00:00

I have user list page and create user page

index.cshtml(user list)

create.cshtml(create user)

and I want to display create page in index.cshtml in modal.

<div class="modal modal-lg">

<div class="modal-dialog">

---create.cshtml

</div>

</div>

if the form is submit in create.cshtml it will post to create.html not index.cshtml and just the modal closed but the index.cshtml not post and nothing change.

just the create.cshtml post to create.cshtml.cs and the index.cshtml do not change.

how to do it?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Naimish Makwana 170 Reputation points
    2023-01-18T11:56:24.33+00:00

    Can you please provide some detail? What do you exactly want to do?