问一下:我在VS2005中使用Ajax.net 2.0时
这样写
web.config里添加
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
page_load里添加
AjaxPro.Utility.RegisterTypeForAjax(typeof(ShowImage));
定义函数
[AjaxPro.AjaxMethod]
protected string ChangeMap()
调用时代码是
EasyShow.ShowImage.ChangeMap().value可运行时javascript报错说EasyShow未定义,我是不是忘了写什么代码了,请指教,谢谢...
这样写
web.config里添加
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
page_load里添加
AjaxPro.Utility.RegisterTypeForAjax(typeof(ShowImage));
定义函数
[AjaxPro.AjaxMethod]
protected string ChangeMap()
调用时代码是
EasyShow.ShowImage.ChangeMap().value可运行时javascript报错说EasyShow未定义,我是不是忘了写什么代码了,请指教,谢谢...
解决方案 »
- 如何只允许文本框中输入汉字,字母与空格
- .NET Framework出问题了!!!!!!!!!
- .net4.0整合UEditor,开发环境没有问题,发布之后无法上传图片
- .NET2.0 调用CSS无效
- IE缓存的默认过期时间是多少?
- Javascript 小问题..
- C#如果通用的webservice接口调用?
- 如何解决ASP.NET2.0中的框架中每点击树形结构一个节点页面就闪一下的问题??
- 请教:在datagrid中,相同数据的单元格自动隐藏的解决方法
- xslt转换的xml网页中需要加入javascrip脚本和asp.net click事件应该怎么办?
- Atlas问题:如何在现有项目中使用atlas|顶者有分
- Windows 2003 与 vs2003的问题.
好象还有这个啊
http://www.99scj.com
全转ajax.pro+vs2005实现
{
public class ChatRoom : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Ajax.Utility.RegisterTypeForAjax(typeof(ChatRoom));
......直接调用
javascript:
ChatRoom.GetUserList(RefreshUserList_CallBack);
ChatRoom.GetUserList(RefreshDropdownList_CallBack);
ChatRoom.GetChatContent(RefreshChatContent_CallBack);
<sectionGroup name="ajaxNet">
<section name="ajaxSettings" type="Ajax.AjaxSettingsSectionHandler, Ajax" />
<section name="ajaxConverters" type="Ajax.AjaxConverterSectionHandler, Ajax" />
</sectionGroup>
</configSections>这个加了没?
这个不用加啊。
自己顶顶。