用户控件中的AJAX控件 [英] AJAX Control in a User control
问题描述
我开发了一个用户控件,其中包含一个Ajax Toolkit异步文件上载控件.
将用户控件放到页面中并运行该页面时,浏览器将引发异常:
I have developed a user control which has an Ajax Toolkit Async File Upload control in it.
When the user control is dropped into a page and the page is run the browser throws an exception:
Microsoft JScript运行时错误:Sys.ArgumentUndefinedException:值不能不确定.
参数名称:baseType
Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: baseType
在javascript函数中:AjaxControlToolkit.AsyncFileUpload.registerClass
我一直在寻找某种解决此问题的方法,但无济于事.问题在于将Ajax控件放入用户控件中,因为我已经测试了该理论,并且可以用Ajax控件工具包中的几乎所有控件重现它.
如果有人遇到过这个问题,并且可以指出解决方案,我将不胜感激.
问候
Tom
In the javascript function: AjaxControlToolkit.AsyncFileUpload.registerClass
I have searched for some kind of solution to this issue to no avail. the issue is to do with placing the Ajax Control in the User Control as I have tested this theory and its reproducable with pretty much all the controls in the Ajax Control Toolkit.
If anyone has come across this and could point me towards a solution I would be grateful.
Regards
Tom
推荐答案
我一直在寻找某种解决方案此问题无济于事.
I have searched for some kind of solution to this issue to no avail.
然后,您的搜索还不够好, ^ ]
You haven''t search very well then, http://www.google.com/search?rlz=1C1CHFX_enUS373US373&sourceid=chrome&ie=UTF-8&q=Microsoft+JScript+runtime+error:+Sys.ArgumentUndefinedException[^]
您好,请检查ajax控件的加载过程...
似乎控件是在脚本管理器加载脚本之前加载的....可能不是确切的答案...请检查一次
Hi can u please check the loading process of the ajax controls...
it seems the controls are loading before the script manager loads the script....it may not be exact answer...please check once
这篇关于用户控件中的AJAX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!