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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Take some action when message is received by client in webform

Take some action when message is received by client in webform

Scheduled Pinned Locked Moved ASP.NET
wcfsysadminxmlhelptutorial
2 Posts 2 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.
  • T Offline
    T Offline
    tprakash
    wrote on last edited by
    #1

    I have written soap server and soap client using SoapSender and SoapReceiver class of WSE2.0. The soap server in console application while the soap client is in web application. The client requests the server. When the server replies some message to the client. This message is received in the client portion ie in the function Receive. protected override void Receive(SoapEnvelope env) { } Now the problem is, if i write some code inside the Receive function as protected override void Receive(SoapEnvelope env) { //some code to extract message from the soapenvelope WewForm1 wf=new WebForm1(); wr.Response.Redirect("WebForm2.aspx"); } It won't redirect to page WebForm2.aspx. My objective is to take some action (either redirect to another page or just display the message received in the current page) when the message is received. Could somebody tell me how to do this? Thanks in advance. tandukar

    M 1 Reply Last reply
    0
    • T tprakash

      I have written soap server and soap client using SoapSender and SoapReceiver class of WSE2.0. The soap server in console application while the soap client is in web application. The client requests the server. When the server replies some message to the client. This message is received in the client portion ie in the function Receive. protected override void Receive(SoapEnvelope env) { } Now the problem is, if i write some code inside the Receive function as protected override void Receive(SoapEnvelope env) { //some code to extract message from the soapenvelope WewForm1 wf=new WebForm1(); wr.Response.Redirect("WebForm2.aspx"); } It won't redirect to page WebForm2.aspx. My objective is to take some action (either redirect to another page or just display the message received in the current page) when the message is received. Could somebody tell me how to do this? Thanks in advance. tandukar

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

      tprakash wrote:

      WewForm1 wf=new WebForm1(); wr.Response.Redirect("WebForm2.aspx");

      In your custom class, you need to get reference to the Response object of the current HttpContext[^] instance and redirect the user to a new page.

      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