Dec 24, 2010 at 5:59 AM



Are there any issues with having to lookup pop up form on a single page?

I'm noticing that the second pop up form is acting very strangely. Such as not closing when clicking on OK, results not appearing in the disabled text box and sometime the http post controller is not launched/hit when using IE, but is when using Firefox.

Dec 24, 2010 at 7:18 AM


it shouldn't be,

show me your aspx

and your generated html

Dec 27, 2010 at 8:42 PM

OK, I've narrowed down the issue

I have a loop in my aspx file with the following lines:

 <%: Html.MakePopupForm<HomeController>(o => o.PopupForm2(0, item.ID), width: 500, height: 400, title: "Pop")%> 
<%: Html.PopupFormActionLink<HomeController>(o => o.PopupForm2(0, item.ID), "Pop")%>

The Pop Up form reacts as stated above.

Also if I but the above code out side of the loop, the pop up works fine.

Finally if I leave the code in the loop and also put the code outside of the loop the pop up still reacts as above no matter what link you click on.

Dec 27, 2010 at 9:01 PM

call MakePopupForm just once, don't put it inside the loop

this is generating the js functions needed to open the popup

also when you call MakePopupForm(p1,p2,p3) the value of the parameters don't matter just put zeroes and nulls there


put in the loop just the PopupFormActionLink (if you need to )

look at the new live demo