Click here to Skip to main content
15,885,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Test.cshtml:

function test() {
document.getElementById(testing).showModal();}

function test() {
document.getElementById("testing").showModal();}



<img src="~/images/test.png" onclick="test()" />
<dialog id="testing" style="position: absolute; top: 0px; left: 0px; ">@Html.ActionLink("test","Test","Home")</dialog>


Homecontroller:

public ActionResult Test()
{
.....
return PartialView(c);}



when i do this it redirect me to the next page but i want this view as a popup on the parent view . i have also used @Html.partial("Test") , it created this view as popup but doesnot performed the action means it is not showing the results that i want on my popup . can any one help what should i do for generating this view as popoup window in the parent view.
Posted
Updated 1-Nov-15 3:38am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900