Hi, im fairly new to asp.net and i need some help fixing my code for test.aspx (all on one page, no codebehind), heres the page:
<%@ Page Language="vb" %>
<%@ import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<script Language="VB" Debug="true" RunAt="Server">
Private Sub Page_load (byval sender as system.object, byval e as system.eventargs) handles mybase.load
'Protected WithEvents lblresult As Label.
dim strchoice as string
strchoice = "one"
lblresult.text = strchoice
Private sub mysub(byref strtemp as string)
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
when i run it i get this error:
Compiler Error Message: BC30451: Name 'lblresult' is not declared.
"dim lblresult as label" and "Protected WithEvents lblresult As Label."
I dont know what is wrong, but i know it should be fairly easy to fix. Do i need to make a class for this thing work, cause i dont think i should (its asp.net 1.1)? Dont worry about the byval and byref, that was what i was planning to test before i got that error. Help please, thanks