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 9073047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:19:19+00:00 2026-06-16T18:19:19+00:00

I have very strange situation: I have asp:panel in my aspx code, in code

  • 0

I have very strange situation: I have asp:panel in my aspx code, in code behind I try to set up visibility of it. This is code

divDiscountCodeCongratulation.Visible = true;

code in aspx

<asp:Panel ID="pan1" runat="server">
    <asp:Panel class="sbox-gratulacje" ID="divDiscountCodeCongratulation" runat="server" >
        <asp:Literal ID="LitDiscountCodeCongratulation" runat="server" Text="Gratulacje "></asp:Literal>
        <asp:Literal ID="litDiscountInfoFromCode" runat="server"></asp:Literal>       
        <asp:LinkButton ID="btnDiscountCodeCancel" runat="server" Text="Cofnij" OnClick="btnDiscountCodeCancel_Click" />
    </asp:Panel>
</asp:Panel>

I put breakpoint on this line, just after it I have still false value (default value). The same situation is when I try to set it in Immediate Window.

Does anyone know why this happen??


All parents of “divDiscountCodeCongratulation” have to have set Visibility to true.

  • 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-06-16T18:19:21+00:00Added an answer on June 16, 2026 at 6:19 pm

    Are you sure that pan1 is visible. If it is invisible that is expected behavior.

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

Sidebar

Related Questions

I have a very strange situation. I have a large set of records to
I have a very strange situation. Basically I have code that uses a decryptor
I have a very strange situation: code shown below should print no error in
I have a strange situation. Try double clicking on Insane on this fiddle .
I have a quite strange situation. I have this very simple package: Task get
I have a very strange situation. I´m working on a pretty big Java application
I have the next very strange situation and problem: .NET 4.0 application for diagram
I am running into a very strange situation with an app I have that
I have faced a very strange situation here. I am accessing database (MDB) through
Very strange situation here: I'm using L2S to populate a DataGridView. Code follows: private

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.