This is a migrated thread and some comments may be shown as answers.

AJAX Post Insert SQL Data

1 Answer 61 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 26 Feb 2008, 10:08 PM
I am working on a sytem that requires logging of a user's actions.  I need to be able to make an ajax call that will post a value into my audit table.  What is the best approach for this?

I am using a TreeView and I have set the OnClientNodeClicked code to this:

function AfterClientClickHandler(treeView, args)  
{  
    var oNode = args.get_node();  
    var attributes = oNode.get_attributes();  
      
    if (attributes.getAttribute("Level") == "Item")  
    {  
        bIndexGridPop = false;  
        bAssociatedGridPop = false;  
        bAuditGridPop = false;  
        ViewSelectedItem(attributes);  
        myViewer.OpenUrl(attributes.getAttribute("ItemPath"));  
        myThumb.OpenUrl(attributes.getAttribute("ItemPath"));  
        iCurrentPage = -1;  
    }  
    else  
    {  
    }  

I have tried using the AjaxRequest and AjaxRequestWithTarget functions but that does not seem to be the solution thus far.

I cannot post my project as it is rather large and has quite a few dependencies.

TIA

Seth

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Feb 2008, 07:52 AM
Hello Seth,

The only way to achieve this is to use AjaxRequest() method and pass desired values to the event server side.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Seth
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or