我对Ajax帮助有问题请 [英] i have problem with ajax help please

查看:85
本文介绍了我对Ajax帮助有问题请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此页面中使用过ajax,但是它根本不起作用,我使用过ajax工具包4.0.
根本没有出现,但是我应该说它在本地可以正常工作,但是在服务器上却有这个问题.

http://www.ttifo.com/Compare.aspx
在此页面中,ajax无法正常工作并触发回发

http://www.ttifo.com/MobileInfo.aspx?BM=Nokia/5233
并且此页面中有一个标签容器,但根本不显示



我解决了ajaxtoolkit问题,将其更改为jquery,但是我无法解决 http://www.ttifo.com/Compare. aspx
页面的问题尚未回传.

请帮助

i have used ajax in this page but it doesnt work at all , i used ajax toolkit 4.0
which doesnt appear at all , but i should say it work normal on local but on server it has this problem.

http://www.ttifo.com/Compare.aspx
in this page ajax doesnt work and fire postback

http://www.ttifo.com/MobileInfo.aspx?BM=Nokia/5233
and there is a tab container in this page but it doesnt show at all



i solved the ajaxtoolkit problem i changed it to jquery , but i could''nt solve http://www.ttifo.com/Compare.aspx
page''s problem it postback yet.

please help

推荐答案

,以便在需要安装AJAX extesnion的服务器上运行AJAX工具包.
以及您需要在web.config中添加一些标签.确保添加了所有标签.请参阅下面的链接

to run AJAX toolkit on server you need to install AJAX extesnion.
as well as you need add some tags in web.config. make sure that all tags are added. see the below link

changes in web.config for AJAX [^]


更改页面的回发发生时,这就是所发生的事情(在较高级别上):

重新创建了控件集合,并加载了原始页面的属性值
Page_Load被触发
页面索引已更改.由于尚未再次对FormView进行数据绑定,因此原始控件仍然存在
FormView是数据绑定的.现有的控件将被删除并创建新的控件,因此尽管有一个imgBtnPrevious控件,但它与原始控件是一个不同的控件,因此这些属性会丢失.

您是否真的在源代码中应用了postback属性?
When the postback to change pages occurs, here''s what''s happening (at a high level):

The controls collection is recreated and the property values for the original page are loaded
Page_Load is fired
The page index is changed. Since the FormView has not been databound again yet, the original controls are still there
The FormView is databound. The existing controls are deleted and new controls are created, so while there is an imgBtnPrevious control, it''s a different control than was there originally so the properties are lost.

Cld you verity whether you applied postback attribute in the source code?


这篇关于我对Ajax帮助有问题请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆