Hi. I am experimenting with AJAX with ASP for the first time and I have a question. I want to have a textbox that when a user will type in something a txt file on the server will change to the textbox's text instantaneous, like real-time editing. I have the textbox and a timer. The timer goes every 10 ms and opens a text reader and changes the text to textbox1.text, yet the contents are not being updated in the textbox. Any help? Oh and I did turn EnablePageMethods to true and I know that the timer is executing.
Here is the code:
Dim send As IO.StreamWriter
Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
send.Write(TextBox1.Text)
End Sub
Sub WebForm1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
send = FileIO.FileSystem.OpenTextFileWriter("doc.txt", False)
End Sub