首页 新闻 会员 周边

updatePanel The message received from the server could not be parsed.问题

0
悬赏园豆:20 [已关闭问题] 关闭于 2010-12-13 14:34

我用updatePanel控件 当点击一个它里面的 BUTTON时 页面无法跳转,出现上面的问题。  查了下线 加了个<Triggers>
    <asp:PostBackTrigger ControlID="btnNextStep" />
</Triggers>属性后就可以用了,但是页面有出现了回发--》这样又导致了很多问题。

谁有好的解决方案,让updatepanel不回发。

 

其实我明确我的问题出在哪里 可惜我不会改了:

是updatepanel中有一段如下的代码,才导致了这个问题。 可惜这段代码不能删除,而我还不会改

谁来帮我看一下

 var context = HttpContext.Current;
            context.Response.Clear();
            context.Response.Write("<html><head>");
            context.Response.Write(string.Format("</head><body onload=\"document.{0}.submit()\">", FormName));
            context.Response.Write(string.Format("<form name=\"{0}\" method=\"{1}\" action=\"{2}\" >", FormName, Method, Url));
            for (int i = 0; i < inputValues.Keys.Count; i++)
                context.Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" value=\"{1}\">", HttpUtility.HtmlEncode(inputValues.Keys[i]), HttpUtility.HtmlEncode(inputValues[inputValues.Keys[i]])));
            context.Response.Write("</form>");
            context.Response.Write("</body></html>");
            context.Response.End();

baihongri的主页 baihongri | 初学一级 | 园豆:4
提问于:2010-12-02 14:31
< >
分享
所有回答(1)
0

 你好, 我现在也遇到 updatePanel The message received from the server could not be parsed.问题 , 请问下 你是怎么解决的? O(∩_∩)O谢谢

jason_LSZ | 园豆:205 (菜鸟二级) | 2017-01-05 09:56
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册