I've got a problem with Events in ASP .NET.
The following code doesn't work.
Partial Public Class _Default
Inherits System.Web.UI.Page
Protected Sub SignInButton_Click(ByVal sender As Object, ByVal e As EventArgs)
MsgBox("Test")
MainContent.Controls.Clear()
MainContent.InnerHtml = ""
Dim ArmyButton As New Button
ArmyButton.Height = 50
ArmyButton.Font.Size = FontUnit.Large
ArmyButton.Text = "Your army"
MainContent.Controls.Add(ArmyButton)
End Sub
Private Sub AddLine(ByVal TargetObject As HtmlContainerControl)
TargetObject.Controls.Add(New LiteralControl("<br/>"))
End Sub
Protected Sub PlayGameButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles PlayGameButton.Click
Header.Text = "Sign in required"
Content.Text = "In order ...
Go to the complete details ...