Can I use Application Variable for Chat System and how can use , i have used below code but if i open from two browser then after clicking send button its not display on another browser pls help me
Public Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Application.Lock()
'Dim nickname As String = txtnickname.Text
Dim chatmessage As String = TextBox1.Text
Dim mymessage As String = "Uttam" & "::" & chatmessage
'Appending the User Entered Data To Application["msg"] object
Application("msg") = Application("msg") + mymessage + Environment.NewLine
'Finally Dispaling on the Chat Content
Me.TextBox2.Text = Application("msg").ToString()
Me.TextBox1.Text = ""
Application.UnLock()
End Sub
thanks in Advance