Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Accessing events from outside

Accessing events from outside

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminquestionlearning
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jazeee
    wrote on last edited by
    #1

    Is there any way to handle event(maybe some custom) raised by ASP.NET page in outer application(of course in .NET platform)? I am running Windows Form and start ASP.NET server from form. And data received from web should be processed in form too.

    M 1 Reply Last reply
    0
    • J Jazeee

      Is there any way to handle event(maybe some custom) raised by ASP.NET page in outer application(of course in .NET platform)? I am running Windows Form and start ASP.NET server from form. And data received from web should be processed in form too.

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      I believe that there are a couple of options to notify the Windows Form ( or an outer .Net application in general), for example .Net remoting, MSMQ, ....

      J 1 Reply Last reply
      0
      • M minhpc_bk

        I believe that there are a couple of options to notify the Windows Form ( or an outer .Net application in general), for example .Net remoting, MSMQ, ....

        J Offline
        J Offline
        Jazeee
        wrote on last edited by
        #3

        I believe this too;) But would be great to know HOW should I do:)

        M 1 Reply Last reply
        0
        • J Jazeee

          I believe this too;) But would be great to know HOW should I do:)

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Assuming you use the .Net Remoting, briefly your Window application can host an object that can be called remotely from an outer application like the ASP.NET application. Whenever a custom event happens in the ASP.NET application, you can send a request from the ASP.NET application to notify the Windows application via this remote object about this event as well as the event-related data sent along with the request. For more information, sample code, and how-tos you can see Remote Objects[^]

          J 1 Reply Last reply
          0
          • M minhpc_bk

            Assuming you use the .Net Remoting, briefly your Window application can host an object that can be called remotely from an outer application like the ASP.NET application. Whenever a custom event happens in the ASP.NET application, you can send a request from the ASP.NET application to notify the Windows application via this remote object about this event as well as the event-related data sent along with the request. For more information, sample code, and how-tos you can see Remote Objects[^]

            J Offline
            J Offline
            Jazeee
            wrote on last edited by
            #5

            Thanx for this - remoting is quite usable. But maybe there is a way to pass objects inside system? I mean that would be great if objects will not be able to come out from local machine .NET system.

            P M 2 Replies Last reply
            0
            • J Jazeee

              Thanx for this - remoting is quite usable. But maybe there is a way to pass objects inside system? I mean that would be great if objects will not be able to come out from local machine .NET system.

              P Offline
              P Offline
              payback
              wrote on last edited by
              #6

              Whats the catch????

              1 Reply Last reply
              0
              • J Jazeee

                Thanx for this - remoting is quite usable. But maybe there is a way to pass objects inside system? I mean that would be great if objects will not be able to come out from local machine .NET system.

                M Offline
                M Offline
                minhpc_bk
                wrote on last edited by
                #7

                You can configure the remote object with the rejectRemoteRequest set to true so that your system can work locally as you expect. More information can be found from here Channel and Formatter Configuration Properties[^]

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups