问题描述
我正在使用asp.net开发一个网站,但运行该网站时却遇到类似
的运行时错误Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
但是我用的是.net3.5版本.我成功运行了同一个wesite的bakup,但是几天后我打开它运行,它给出了运行时错误,请有人帮我解决
i am developing one website using asp.net while run the website i got a runtime error likeMicrosoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
but i used .net3.5 version. i runs successfully the bakup of same wesite but after fewdays i opened it run it gives runtime error pls help me if anybody knows
推荐答案
First register ajax control toolkit in your page
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajx" %>
Then add this code anywhere inside aspx page
<ajx:toolkitscriptmanager id="ToolkitScriptManager1" runat="server">
这篇关于运行asp.net网站时出现运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!