JS

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

    JS

    Is there a way to fire server side Code behind Function from client side
    javascript ??

    --
    Blogger ist ein Veröffentlichungs-Tool von Google, mit dem du ganz einfach deine Gedanken der Welt mitteilen kannst. Mit Blogger kannst du problemlos Texte, Fotos und Videos in deinem persönlichen Blog oder deinem Team-Blog veröffentlichen.

    =====
    vInAypAtHi
    o__
    ---_,>/'_------
    (_) \(_)
    ---------------
  • Marina

    #2
    Re: JS

    The only way without a postback would be to make an XMLHTTP request to a
    page that can run the function.

    Otherwise, you could cause a postback while setting some hidden input to a
    value or something, and then read that value on the server to determine
    which function you need to run.

    "vinay" <vinay@discussi ons.microsoft.c om> wrote in message
    news:8240092C-29AF-4FAE-AE24-9FFF516B6F80@mi crosoft.com...[color=blue]
    > Is there a way to fire server side Code behind Function from client side
    > javascript ??
    >
    > --
    > http://pathidotnet.blogspot.com
    > =====
    > vInAypAtHi
    > o__
    > ---_,>/'_------
    > (_) \(_)
    > ---------------[/color]


    Comment

    • vinay

      #3
      Re: JS

      Yup i know the XMLHTTP way.
      Was wondering if there was other way !!

      Thanks

      "Marina" wrote:
      [color=blue]
      > The only way without a postback would be to make an XMLHTTP request to a
      > page that can run the function.
      >
      > Otherwise, you could cause a postback while setting some hidden input to a
      > value or something, and then read that value on the server to determine
      > which function you need to run.
      >
      > "vinay" <vinay@discussi ons.microsoft.c om> wrote in message
      > news:8240092C-29AF-4FAE-AE24-9FFF516B6F80@mi crosoft.com...[color=green]
      > > Is there a way to fire server side Code behind Function from client side
      > > javascript ??
      > >
      > > --
      > > http://pathidotnet.blogspot.com
      > > =====
      > > vInAypAtHi
      > > o__
      > > ---_,>/'_------
      > > (_) \(_)
      > > ---------------[/color]
      >
      >
      >[/color]

      Comment

      • Steve C. Orr [MVP, MCSD]

        #4
        Re: JS

        You can use the web service behavior for this. (WebService.htc )
        This technique works with IE only.
        Here's more details:




        --
        I hope this helps,
        Steve C. Orr, MCSD, MVP





        "vinay" <vinay@discussi ons.microsoft.c om> wrote in message
        news:8240092C-29AF-4FAE-AE24-9FFF516B6F80@mi crosoft.com...[color=blue]
        > Is there a way to fire server side Code behind Function from client side
        > javascript ??
        >
        > --
        > http://pathidotnet.blogspot.com
        > =====
        > vInAypAtHi
        > o__
        > ---_,>/'_------
        > (_) \(_)
        > ---------------[/color]


        Comment

        Working...