c# - Update UI from code behind in real time -
I have created a socket listener, and I need to display a div (hide it, then it should be visible) , When the server detects a certain socket data.
I have tried to use a thread, but it does not update the UI in realtime, only when the page is reloaded or if you post back.
Here's an example of what I want to do, in this case I only want to update a text box with codebehand data, if possible, I would like to do this without AJAX, Javascript or jQuery.
Code Back:
Protected Zero Page_load (Object Sender, EventAgds E) {Thread T = New Thread (TestTread); T.Start (); } Private Wide Testthread (for (IntiI = 0; I
Webpage:
& asp: UpdatePanel runat = "server" id = "mypalan" & gt; & gt; ContentTemplate & gt; Lt; ASP: Textbox Runat = "Server" id = "MyTeckbox" />
The UI that you are trying to modify (modify client components) changes the code from the code (code back) in asp.net When on the server Sector itself sends customer data.
You must use client-side scripting / coding.
Comments
Post a Comment