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

  1. #1

    Default Function call

    Hi,

    I need to call a function in my asp.net application from a
    vb.net windows application running on the same machine.
    Is this generally possible? How can this be realised?

    Thanks

    Ric
    Ric Guest

  2. Similar Questions and Discussions

    1. mx:ColumnSeries Function Call?
      I am trying to build a graph from an XML file. I would like to have the ColumnSeries add up 4 different XML entries and display it as a bar graph...
    2. Call page from function
      Hi, I'm trying to use the web timer to schedule a call to an asp page. In practice, I want the server calls an asp page that makes several jobs. The...
    3. How do I call a function?
      created a function: how do I call it? thx
    4. Can Actionscript call a vb.net function?
      Is it possible for Actionscript to start a function in a vb.net? If so, can you show me an example? Thanks, Trint
    5. How do I call an outer function from a class method function?
      I'm sorry guys but this is a bad day for me. I tried researching this one and was totally stonewalled (see...
  3. #2

    Default Re: Function call

    You could use a web service.
    Or you could use the WebRequest object to call an ASPX page, passing it
    parameters on the command line.
    Better yet, you could Reference the ASP.NET assembly and call it directly.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Ric" <r.furner@gmx.com> wrote in message
    news:037d01c35542$2ed55040$a301280a@phx.gbl...
    > Hi,
    >
    > I need to call a function in my asp.net application from a
    > vb.net windows application running on the same machine.
    > Is this generally possible? How can this be realised?
    >
    > Thanks
    >
    > Ric

    Steve C. Orr, MCSD Guest

  4. #3

    Default Re: Function call

    You would have to expose the function via Web Service or Remoting.

    --
    HTH,

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

    "Ric" <r.furner@gmx.com> wrote in message
    news:037d01c35542$2ed55040$a301280a@phx.gbl...
    > Hi,
    >
    > I need to call a function in my asp.net application from a
    > vb.net windows application running on the same machine.
    > Is this generally possible? How can this be realised?
    >
    > Thanks
    >
    > Ric

    Kevin Spencer Guest

  5. #4

    Default Function Call

    Does anybody know a way to capture all the function calls to a web service. I want to log the IP and the call, but I don't want to place a call to this function in every WebMethod.

    Thanks for your help!

    --------------------------------
    From: Don Gerard

    -----------------------
    Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])

    <Id>G0yzdL/Dj0iXXKlIK4+b4A==</Id>
    Don Gerard via .NET 247 Guest

  6. #5

    Default Re: Function Call

    Add a global.asax and inside add a Application_BeginRequest event handler.
    This will get called for every request into your application. Within the
    event handler you can access the Request object which should give you anything
    you'd need to know about the client HTTP request.

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]


    > Does anybody know a way to capture all the function calls to a web
    > service. I want to log the IP and the call, but I don't want to place
    > a call to this function in every WebMethod.
    >
    > Thanks for your help!
    >
    > --------------------------------
    > From: Don Gerard
    > -----------------------
    > Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
    > <Id>G0yzdL/Dj0iXXKlIK4+b4A==</Id>
    >


    Brock Allen Guest

  7. #6

    Default Function Call

    I am looking for a way to determine what funtion has been called in a web service. I want to log the function name and the IP address of the caller.

    Thanks!

    --------------------------------
    From: Don Gerard

    -----------------------
    Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])

    <Id>SGpeW4QjQ0CU8OZCKX742w==</Id>
    Don Gerard via .NET 247 Guest

  8. #7

    Default Re: Function Call

    You can add a global.asax file and add a Application_BeginRequest event handler.
    You then have access to the Request object which can give you information
    about the HTTP request. For a web service call, you'll have to find the proper
    SOAP header (I forget its name). Then take that info and log it wherever
    you want. The nice thing about Application_BeginRequest is that it's called
    for every request into your application regardless of which web page or web
    service. It's nice to have code in one place.

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]


    > I am looking for a way to determine what funtion has been called in a
    > web service. I want to log the function name and the IP address of
    > the caller.
    >
    > Thanks!
    >
    > --------------------------------
    > From: Don Gerard
    > -----------------------
    > Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
    > <Id>SGpeW4QjQ0CU8OZCKX742w==</Id>
    >


    Brock Allen 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