After putting a textbox on my page when I compile it I get the above error:
'txtName' is not declared. It may be inaccessible due to its protection level.
This is happening when I try to read the value of the textbox in the codebehind page.
I'm not sure what's causing this...any ideas?
In the aspx file I have:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="signup.aspx.vb" Inherits="signup" %>
In the codebehind aspx.vb file I have:
Imports System.Data.SqlClient
Partial Class signup
Inherits System.Web.UI.Page
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…