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

  • SEARCH
  • Home
  • 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 6127475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:30:47+00:00 2026-05-23T16:30:47+00:00

I cant reach the panelID from the code behind cs file.. <asp:Panel ID=Panel1 runat=server

  • 0

I cant reach the panelID from the code behind cs file..

        <asp:Panel ID="Panel1" runat="server" ondatabinding="Panel1_DataBinding" 
        Visible="False">
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </asp:Panel>


    using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class PanelControl : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      Panel1.  --- intellisense doesnt work and there is a red line underneath it!!
    }

    protected void Panel1_DataBinding(object sender, EventArgs e)
    {

    }
}


    <%@ Page Title="" Language="C#" MasterPageFile="~/Forum.master" AutoEventWireup="true" CodeFile="PanelControl.aspx.cs" Inherits="PanelControl" %>

<script runat="server">

    protected void ButtonPanel1_Click(object sender, EventArgs e)
    {

    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
        <br />
    </p>
    <p>
    </p>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <asp:Panel ID="Panel1" runat="server">
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </asp:Panel>
     <asp:Button ID="ButtonPanel1" runat="server" Text="Panel 1" 
        onclick="ButtonPanel1_Click" />
    <p>
    </p>
    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
    <asp:Panel ID="Panel2" runat="server">
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </asp:Panel>
    <asp:Button ID="ButtonPanel2" runat="server" Text="Panel 2" />
</asp:Content>
  • 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-23T16:30:48+00:00Added an answer on May 23, 2026 at 4:30 pm

    as razlebe indicated, you may just have to rebuild.

    About once a day, my code will show that a bunch of code is invalid and just doing a rebuild fixes it.

    If that does not work, your example shows that you are using a “partial class” and check the designer.cs class to make sure that your variable for the panel is defined.

    for example:

        public partial class PanelControl {
           protected System.Web.UI.WebControls.Panel Panel1;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

snippet from The Server code : public void run() { try { // Create
I renamed aspx file name but now i can't reach to controls from cs
I cant post the code (proprietary issues) but does anyone know what types of
Why cant i use code nuggets to set a control property??For example a validationgroup
When I run Tomcat from the windows tray, it starts and I can't reach
I read here lot of answers about protecting a file on apache server, some
i'm trying to use compiled assets and code from a swc. Inside a new
I'm trying to execute the register_shutdown_function when Zend_Db (PDO_MYSQL) can't reach the mysql server
I have a new Win 2008 Server VM. I've just installed UDDI website from
Is it possible to check if Android WebView can reach the server or not?

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.