User-529404833 posted
I am new to ASP should be a simple solution that I am overlooking cannot seem to get my web form to fire an event? Double click on the button1 in design view nothing happens. Button Property Lightning view no joy. Attempt to manually enter code
error is generated at build.
<%@ Page Language="vb" AutoEventWireup="false" CodeBeind="TestPage.aspx.vb" Inherits="SampleSite.TestPage" %>
<!DOCTYPE html>
<html xmlns="http://wwww.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body class="WebForm1">
<form id="form1" runat="server">
<div>
<asp: Label id="Label1" runat="server" text="Type Something Here" />
<asp: TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp: Button id="Button1" runat="server" Text="Button"/>
</div>
</form>
</body>
</html>
Imports Microsoft.VisualBasic
Partial Class WebForm 'Does not matter if I use Partial Public or Public
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
'Does not recognize Button1.Click or TextBox1.Text or Label1.Text generates an ERROR BC30506
End Sub
End Class
Any assistance would be greatly appreciated using Visual Studio 2019 ASP Net Application Empty Web Site added web form with Project menu.