I have a modal dialog that I am loading to continue a registration process on my page and I am trying to create a custom close button to give the user an option to cancel registration. I have tried many small variations on the code below, but I can't get the close button to work. The dialog opens just fine, and the close button is populated from my form, but the button does nothing.
Any assistance anyone could offer would be much appreciated. Thanks!
I have simplified my code and changed the way the div for the dialog is populated (I now have the controller returning the view for the dialog to the external div). I still can't get the dang custom close button to work. The button has an id of "CloseMe", and its type is a button. I have read forum post after forum post and cannot figure out for the life of my why this doesnt work. I have: - tried removing the conditional statement. it isnt the problem. - added a dialog close button, which works just fine - moved the dialog close and click event outside the dialog function- no dice
Are you talking about x close button at the top right corner of the dialog? I am having the same problem and I can not figure out what to do to fix it. I posted a separate thread also, but basically I have a ASP.NET MVC application. In the main view I have a form. If I just call myForm.dialog.open, it works fine (the close button).
But if I try myForm.Load(myUrl).dialog.open where myUrl returns a partial view, the close button does not work anymore.
I posted a few threads on this topic here and on ASP.NET MVC forum, but so far no help.
Is it a dead end scenario?
Thanks in advance.
Leave a comment on naomino's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic