`
wfdoublext
  • 浏览: 126355 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

ajax .net   应用

    博客分类:
  • ajax
阅读更多
详见ajax.net:       http://ajax.schwarz-interactive.de/csharpsample/default.aspx
<system.web>
  <httpHandlers>
  <!-- Register the ajax handler -->
  <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory,Ajax" />
  <add verb="*" path="*.js.aspx" type="ExtWebTest.CompressionHttpHandler,ExtWebTest"/>


参照设定 追加Ajax.dll     
WebForm7.sendstr('Y',showdatafun);
function showdatafun(res)
{	
var myData=eval(res);


}

//==form.load(){}
Ajax.Utility.RegisterTypeForAjax(typeof(ExtWebTest.WebForm2));



[Ajax.AjaxMethod()]
		public string sendstr(string aa)
		{
			return aa+aa;
		}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics