Change value control in asp.net basend on custom event triger
<p>Hi i want to update value in textbox when event trigger..i know how to do it in winform..but i cant do it in webform..</p>

<pre><code>    protected void Page_Load(object sender, EventArgs e)
    {
        if(IsPostBack)
           return;
        else 
           myClass.MyEvent += new MyClass.MyEventDelegate(Default_MyEvent);
    }


    private void Default_MyEvent(string value)
    {
        txtBox.Text = value;
    }
</code></pre>

<p>above code doesn't change text value of my textbox in asp.net but it works in winform. How to do it in webform?</p>

<p>*Edit</p>

<p>I try to create file transfer application via socket on web. I already done this in desktop application.
Basically when client open web page then client will connected to server on spesific port. and every data transmitted to client from server, then in then web form there will be an changing in text of the textbox.</p>
