See my post on stackoverflow.com
You can run the sample project that I have attached. It is right now set to not working mode. You have to uncomment the script line in the ViewUserControl1 in the home folder.
So this means for me to get it to work with partial views I have to add the same script to all my partial views instead of once in the master page. This also means if someone loads the same dialog box up 10 times that script gets loaded 10 times(what I think is a waste of resources).
Please let me know if I am doing something wrong or if you have not encounter the problem.