Note that there are some explanatory texts on larger screens.

plurals
  1. POServer to Client response asp.net
    primarykey
    data
    text
    <p>I've a scenario where there're two servers. A web application in server 1 gets a value from a real physical device. The physical device sends a value say Time = 60. This value is sent to server 2 where another web application is hosted. In server 2, the web pages receives the value and displays a label counting down from 60(received value from server 1) to 0 displaying to the clients. The response from server 1 to web application in server 2 is asynchronous. Any direction is appreciated. Thanks in advance</p> <p><strong>In web application in server 1, i've done to post "timer value of 60" to web application(../Test/Default.aspx) in server 2</strong></p> <pre><code>protected void Page_Load(object sender, EventArgs e) { var response = Post.Data("server2/Test/Default.aspx", new NameValueCollection() { { "GameStart", "True" }, { "Timer", "60" }, { "GameStop", "True" }, { "WinningNumber", "35" } }); } public static class Post { public static byte[] Data(string uri, NameValueCollection pairs) { byte[] response = null; using (WebClient client = new WebClient()) { response = client.UploadValues(uri, pairs); } return response; } } </code></pre> <p><strong>Now in the server 2, i've done as below to get the request and I am getting the value as well. but it doesn't display the value in the lblTimer as i believe the page is already rendered. How can i display the timer in label</strong></p> <pre><code>protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.Form.Count &gt; 0) { string Timer = Request.Form["Timer"]; lblTimer.Text = Timer; } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload