How to transfer from javascript to c#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    How to transfer from javascript to c#

    Hi, pardon me for my english.

    I add a ActiveX in my asp.net and I can get it's return and put it in
    my TextBox.
    But I need the value transfer to my class, like this:

    // test.aspx
    function ServerReturnMes sage()
    {
    message = AniAliActiveX.G etServerReturnM essage();
    document.getEle mentById("textB ox1").value = message;
    }

    // test.aspx.cs
    private GetServerReturn ( string str )
    {
    // write it to DB
    ...
    }

    I use TextBox1_TextCh anged, but it's value can not transfer to the
    method.

    Thanks for your kind advice, David.

Working...