Partial Class EditProfile Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Save the email address that has been entered into the textbox Profile.Email = TextBox1.Text End Sub End Class