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

打玻璃 1,526 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.
2,585 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
408 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
No comments
{count} votes

1 answer

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

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