M
Max
I 've got to understand this. I come from dotnet windows applications, not
webforms, ok, but this is too strange and I've already asked this NG and
tried what suggested without solution
Why this doesn't work: I press Button1 and the textbox shows "hello" - then
I press button2 and textbox shows empty field!
What else to do, everything is public here.
Please help
Max
Public Class Default5
Inherits System.Web.UI.Page
Public s As String ''''(or Dim s as string, it's the same)
''''''''''''''''''''''
Public Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
s = "hello"
TextBox1.Text = s
End Sub
'''''''''''''''''''''''''
Public Sub Button2_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button2.Click
TextBox1.Text = s
End Sub
end class
webforms, ok, but this is too strange and I've already asked this NG and
tried what suggested without solution
Why this doesn't work: I press Button1 and the textbox shows "hello" - then
I press button2 and textbox shows empty field!
What else to do, everything is public here.
Please help
Max
Public Class Default5
Inherits System.Web.UI.Page
Public s As String ''''(or Dim s as string, it's the same)
''''''''''''''''''''''
Public Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
s = "hello"
TextBox1.Text = s
End Sub
'''''''''''''''''''''''''
Public Sub Button2_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button2.Click
TextBox1.Text = s
End Sub
end class