如何在项目中,引用 AjaxPro.2.dll 文件啊?

解决方案 »

  1.   

    在解决方案管理器---右键选择引用---找到dll文件,添加
      

  2.   

                    <httpHandlers>
    <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
    </httpHandlers>
      

  3.   

    还需要手动的配置你的webconfig
      

  4.   

    在解决方案管理器---右键选择引用---找到dll文件,添加
    在webconfig文件中加
      <httpHandlers> 
    <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/> 
    </httpHandlers>
      

  5.   

    1
    <httpHandlers> 
    <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/> 
    </httpHandlers>
    2
    在解决方案管理器---右键选择引用---找到dll文件,添加
    3
    default.aspx.cs    protected void Page_Load(object sender, EventArgs e)
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(_Default)); 
         }4
    default.aspx
    <script language="javascript" type="text/javascript"> 
            function test()
            {
                alert(_Default.test().value);
            }
            --> 
    </script> 
    <input id="Button1" type="button" value="button" onclick="test();" />
    5
    default.aspx.cs
        [AjaxPro.AjaxMethod]
        public string test()
        {
            return DateTime.Now.ToString();
        }