jquery - Cloase iframe Colorbox with .Net submit button -


i have simple login form invoked colorbox link , opening in iframe.

<script>     $(document).ready(function () {          $(".logincb").colorbox({iframe:true, innerwidth:240, innerheight:200});      }); </script>  <li><a href="/login/login.aspx" class="logincb">login</a></li> 

the issue have having once user has correctly entered there login details in ifrmae, checked via post in code behind how can redirect parent page , close frame?

with using .net buttons in form makes bit strange in end did include following function in page

  <script language="javascript" type="text/javascript">          function closepage()          {             parent.$.fn.colorbox.close(); parent.location = '/support/marketing-media.aspx';         }  </script> 

then called in code behind button event using clientscript manager.

  if (!clientscript.isstartupscriptregistered("alert"))                 {                     page.clientscript.registerstartupscript(this.gettype(),"alert", "closepage();", true);                 } 

not fan of ugly, works..


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -