Results 1 to 2 of 2

Thread: How do I call Server script from client script?

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    Warner Robins, GA
    Posts
    37
    If I have some server side script:
    <SCRIPT Language="VBScript" RUNAT=Server>
    Function DoSomething(sText)
    ....some code
    DoSomething = sResult
    End Function
    </SCRIPT>

    How can I call this code from something like a button click and pass data back from the server?

    <SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
    <!--

    Sub btnTest_onclick
    ...What is the code to run DoSomething and return a value?
    End Sub

    -->
    </SCRIPT>

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    you cant.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width