Fancybox - ASP.NET button not working

前端 未结 14 1043
一生所求
一生所求 2020-12-01 02:13

I\'ve just determined using Firebug that when Fancybox window is created it actually takes all of my ASP.NET controls (contained in DIV tag) and puts them outside FORM tag.

14条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 02:44

    I use Fancybox 1.3.4 to show an aspx page as a popup page in fancybox iframe. But button in the popup page does not cause postback. I did not change anything as you said before. Rather I did the following.

     function check() 
     {
                var validated = Page_ClientValidate();
                if (validated) {
                    __doPostBack('<%=bur.ClientID%>','');             
                    parent.$.fancybox.close();                                                       
                    return true;
                }
                else 
                {
                    return false;
                }
     }
    
    
    
     
    
    
    protected void bur_Click(object sender,Eventargs e)
    { //put breakpoint here.
    
    }
    

提交回复
热议问题