firing event on server via javascript

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default firing event on server via javascript

    Hi all

    is there any possiblity of doing this ?

    for example,i have handler procedure defined in
    codebehind :

    protected sub proc(sender as object, e as eventargs)
    handles ___.____ ???
    'code here
    end sub

    i want to fire this procedure via javascript, and i dont
    want to 'form.submit()', i just want run this specific
    code defined in handler (what should i place instead of
    ___.___ then ??)

    many thanks in advance
    Konrad R. Guest

  2. Similar Questions and Discussions

    1. event firing problem
      Hi IN my asp.net application (C#.net) i've grid control whith pagerstyle mode=numericpages. in codebehind page i've events for...
    2. Server Control - Datagrid paging event - not firing for previous pages
      Hello All I am having a pretty wired problem...I am writing a web part (SPS 2003) that uses a Datagrid. In the web part, I create the datagird...
    3. OnUpdate Event Not Firing When I Want It
      I have a DataGrid with an Edit Mode. When in Edit Mode, I make a change to a textbox and the Update event fires. This works fine. However, the...
    4. SelectedIndexChanged event not firing
      Is the AutoPostBack property of the DropDown set to True? -- HTH, Kevin Spencer Microsoft MVP ..Net Developer http://www.takempis.com...
    5. server event not firing
      I have a form with a single field and a submit button with a server event. If I click the submit button, the event runs and everything is fine, if...
  3. #2

    Default Re: firing event on server via javascript

    I think you're misunderstanding the way that ASP.Net works. HTTP is
    stateless. There is NO connection between the client and the server. You can
    fire an event on the server from the client, but the only way to do it is to
    post the form back to the server.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Konrad R." <krotuski@_no_sp.am_mion.elka.pw.edu.pl> wrote in message
    news:099901c35dbd$d90ce950$a501280a@phx.gbl...
    > Hi all
    >
    > is there any possiblity of doing this ?
    >
    > for example,i have handler procedure defined in
    > codebehind :
    >
    > protected sub proc(sender as object, e as eventargs)
    > handles ___.____ ???
    > 'code here
    > end sub
    >
    > i want to fire this procedure via javascript, and i dont
    > want to 'form.submit()', i just want run this specific
    > code defined in handler (what should i place instead of
    > ___.___ then ??)
    >
    > many thanks in advance

    Kevin Spencer Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139