Ok, so I have seen this solution to closing a fancybox via a button click. :
$.fancybox.close();
Is there a way that any one is aware of that a fancybox can be closed from the codebehind.
The only thing I can think of is registering a script, because in my situation I need to perform a bunch of logic in my codebehind upon a button click event and then once that has finished close the fancybox. I have searched all over and have been unable to find a solution.
If anyone has found a way to do this please let me know.
Thanks.
try :
ScriptManager.RegisterStartupScript(this, GetType(), "" , "$.fancybox.close();", true);