Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery iOS8 ASP.net回调事件不工作_Jquery_Asp.net_Ios8_Mobile Safari - Fatal编程技术网

Jquery iOS8 ASP.net回调事件不工作

Jquery iOS8 ASP.net回调事件不工作,jquery,asp.net,ios8,mobile-safari,Jquery,Asp.net,Ios8,Mobile Safari,ASP.net按钮在iOS8上不起作用。按钮点击发生,但点击事件未触发。 同样的代码在其他浏览器(Chrome)中也能正常工作。 在iOS7上从未出现过此问题,即使对于Safari-此问题在iOS8更新后出现 以下是我在aspx页面中的代码: <asp:Button runat="server" ID="btnLogin" Text="Next" OnClientClick="return fnValidateLoginData();" /> 以下是回调事件: protecte

ASP.net按钮在iOS8上不起作用。按钮点击发生,但点击事件未触发。 同样的代码在其他浏览器(Chrome)中也能正常工作。 在iOS7上从未出现过此问题,即使对于Safari-此问题在iOS8更新后出现

以下是我在aspx页面中的代码:

<asp:Button runat="server" ID="btnLogin" Text="Next" OnClientClick="return fnValidateLoginData();"  />
以下是回调事件:

 protected void Page_Load(object sender, EventArgs e)
        {

            ac = new AuthenticationController();
            HttpContext hc = HttpContext.Current;
            #region ICallBack Reference

            // get reference of call back method named JSCallback 
            string cbref = Page.ClientScript.GetCallbackEventReference(this,
                            "arg", "fnGetOutputFromServer", "context");
            // Generate JS method trigger callback 
            string cbScr = string.Format("function fnCallServerMethod(arg," +
                                         " context) {{ {0}; }} ", cbref);
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
                              "fnCallServerMethod", cbScr, true); 
    }
这可能有助于:

我们有一个类似的问题,它解决了我们的问题

干杯

 protected void Page_Load(object sender, EventArgs e)
        {

            ac = new AuthenticationController();
            HttpContext hc = HttpContext.Current;
            #region ICallBack Reference

            // get reference of call back method named JSCallback 
            string cbref = Page.ClientScript.GetCallbackEventReference(this,
                            "arg", "fnGetOutputFromServer", "context");
            // Generate JS method trigger callback 
            string cbScr = string.Format("function fnCallServerMethod(arg," +
                                         " context) {{ {0}; }} ", cbref);
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
                              "fnCallServerMethod", cbScr, true); 
    }