Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5978867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:34:43+00:00 2026-05-22T21:34:43+00:00

After putting a textbox on my page when I compile it I get the

  • 0

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 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:34:43+00:00Added an answer on May 22, 2026 at 9:34 pm

    Ok, I have this resolved now. It was becuase I had renamed a copy of the .aspx file and which still using the newer versions code behind file.

    The code behind file was looking for txtName.text but on the older version of the .aspx file txtName didnt exist!

    I have excluded the older version of the page from the project and it appears to run ok now.

    Thanks everyone for you help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I putting wmd on my website. After putting code in and giving it a
what does putting () after a word do? sometimes it doesn't work
Background I'm a one man shop ( a micro-ISV ). A week after putting
I have an extender control that raises a textbox's OnTextChanged event 500ms after the
When I have a regular textbox in a UpdatePanel (not an ASP.NET control) with
I'm trying to setup ipython.el in emacs23. I've successfully installed it (after putting python-mode.el
After putting some code to work, I'm trying to optimize it. One thing that
Code for putting and removing breakpoint after some time in asp.net?
After putting hours into this, I give up, and am asking for help. This
jQuery Autocomplete works by putting a select box on the page and doing this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.