我们如何使用updatepanel [英] How can we use updatepanel
本文介绍了我们如何使用updatepanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Ajax的第一位.
我安装了ASPAJAXExtSetup.msi.
我需要放置下拉列表Dr1,Dr2.更改选定索引后,项将添加到Dr2中.我设置为自动回发.然后工作.但是页面正在加载.
并且还放置了一个压延扩展器,但是当按下压延扩展器时,仅发生页面加载.我从另一个使用ajax工具的项目的bin中添加参考ajax .dll文件.
是什么原因,weconfig文件中是否需要进行任何更改?
I am first in Ajax.
I installed ASPAJAXExtSetup.msi.
I need to placed drop down list Dr1,Dr2.Items are add into Dr2 when changed selected index changed.I set as autopost back.Then working.But page is loading .
And also placed a calender extender but when press calender extender then happening page loading only. I add reference ajax .dll files from a bin of a another project which used ajax facility.
What is the reason ,is any changing required in weconfig file
推荐答案
是.
您需要拥有启用AJAX的网站. Web.Config需要相应地进行更改.
最简单的方法是创建一个新的启用AJAX的网站,然后将web.config从该网站复制粘贴到当前网站.
确保将Scriptmanager和Updatepanel放在页面上. (在updatepanel中包含下拉菜单)
^ ],许多博客/文章描述了如何将普通的ASP.NET转换为基于AJAX的内容:
演练:创建支持Ajax的网站 [从ASP.net转换为支持Ajax的网站 [ ^ ]
Yes.
You need to have AJAX-enabled website. Web.Config needs a change accordingly.
Easiest would be to create a new AJAX-Enabled website and then copy-paste the web.config from that to your current one.
Make sure, you put Scriptmanager and Updatepanel on your page. (with dropdowns inside updatepanel)
Here[^], lots of blogs/articles describing converting normal ASP.NET to AJAX based:
Walkthrough: Creating an Ajax-Enabled Web Site[^]
Converting from ASP.net to Ajax enabled web site[^]
这篇关于我们如何使用updatepanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文