DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Call AJAX method from code behind page

  1. #1
    Join Date
    Aug 2007

    Question Call AJAX method from code behind page


    I need to call an AJAX method from code behind page; is there any way to do that? if it can be done by calling a javascript function from code behind page, also helps
    I'm coding in ASP C# .NET

    Any idea is appreciated
    Last edited by peace2007; 08-26-2007 at 07:42 AM.

  2. #2
    Join Date
    Aug 2007
    this code solved my problem:
    string s = "<script type='text/javascript'>test();</script>";

    ClientScript.RegisterStartupScript(Page.GetType(), "test", s);

    while I have such function in my javascript code:

    function test()

Similar Threads

  1. Ajax to handle image from a ws call
    By photon in forum AJAX
    Replies: 0
    Last Post: 03-26-2007, 07:06 PM
  2. Ajax - Cant pass value from jsp page to js
    By vitalstrike82 in forum AJAX
    Replies: 1
    Last Post: 10-12-2006, 03:09 AM
  3. How to call DLL Method asynchronously?
    By Vidhi in forum VB Classic
    Replies: 2
    Last Post: 05-30-2006, 05:22 PM
  4. Learning Help
    By Carlos in forum Java
    Replies: 3
    Last Post: 07-31-2005, 05:17 PM
  5. Good Editorial by Russell Jones
    By Robert G in forum .NET
    Replies: 84
    Last Post: 02-08-2001, 03:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center