This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

ajax method

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.28 KB  |  views: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [ajax.ajaxmethod()]
  2. public void fnName()
  3.        
  4. response.redirect("sample.aspx");
  5.        
  6. server.transfer("sample.aspx");
  7.        
  8. scriptmanager.registerstartupscript(page,gettype(),"sample","javascriptfunction()",true);
  9.        
  10. AjaxManager.Instance.WriterAtBack.Write("window.location='foo.aspx';");
clone this paste RAW Paste Data