well i have 2 aspx page on 1st page i place a rel arrtibute to apply a face box to open a next page .Now on second page I have a server side asp Button when i press i want to close the face box and back in to first page How can i do this please Help i
am new in jquery
"if everything is important, then nothing is important"
how far you hv gone ?where exactly is the problem.
if u r using updatepanel then it should not be a problem.
though u should explain ur design clearly.when should popup appear and disappear ?
You can use $.fancybox.close(); to close fancybox. If you are using iframe then you can close with parent.$.fancybox.close();. And you can use registerstartupscript to call this code from codebehind-
Sunny ali
Member
177 Points
133 Posts
Face box Close when i press a server side button
Jun 29, 2012 04:40 AM|LINK
well i have 2 aspx page on 1st page i place a rel arrtibute to apply a face box to open a next page .Now on second page I have a server side asp Button when i press i want to close the face box and back in to first page How can i do this please Help i am new in jquery
Please 'Mark as Answer' if this post helps you
JMendez24
Member
70 Points
15 Posts
Re: Face box Close when i press a server side button
Jul 05, 2012 06:34 PM|LINK
Hi,
what you want is to excecute javascript code in the code behind, when button do post back? try this:
http://translate.google.co.cr/translate?sl=es&tl=en&js=n&prev=_t&hl=es&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fevoluciondotnet.blogspot.com%2F2012%2F04%2Fcomo-ejecutar-un-metodo-code-behind-en.html
KumarHarsh
All-Star
15133 Points
3647 Posts
Re: Face box Close when i press a server side button
Jul 07, 2012 02:04 PM|LINK
how far you hv gone ?where exactly is the problem.
if u r using updatepanel then it should not be a problem.
though u should explain ur design clearly.when should popup appear and disappear ?
Kumar Harsh
asteranup
All-Star
30184 Points
4906 Posts
Re: Face box Close when i press a server side button
Jul 09, 2012 07:59 AM|LINK
Hi,
You can use $.fancybox.close(); to close fancybox. If you are using iframe then you can close with parent.$.fancybox.close();. And you can use registerstartupscript to call this code from codebehind-
http://delicious.com/anupdg/registerstartupscript
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog