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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:17:32+00:00 2026-06-10T16:17:32+00:00

This is my code line throwing error $get(Panel1).style.visibility= visible; This line works well on

  • 0

This is my code line throwing error

$get("Panel1").style.visibility= "visible";

This line works well on normal page .But whenever using it on child page which owns a master page it throws the error as “Microsoft JScript runtime error: Unable to get value of the property ‘style’: object is null or undefined”. I am a great beginner to javascript . I am using this on Asp.Net 3.5 .Any one know this issue before .

  • 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-10T16:17:34+00:00Added an answer on June 10, 2026 at 4:17 pm

    Your problem is probably because you do not use the rendered id, that is change if you use the same panel on dipper page. And because you do not use the correct id, the $get() part return the null or undefined. Change your code to:

    $get("<%=Panel1.ClientID%>").style.visibility= "visible";
    

    and render the panel1 id as it will final be on the html page.

    What you should have to solve it alone: You could on the page to see the “view page source” from your browser utility and see if the Panel1 id exist on your html struct, there you can find what was the correct id and the reason that was not found. So the point here is that we look the html rendered page to find out whats going wrong with the scripts.

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

Sidebar

Related Questions

I get a null - reference in this Code-line: **DataRow dr = tableSelectedItems.NewRow();** I
When I remove the DOCTYPE line this code works the way I want it
This code on an html page comes in as one line. Why isn't backslash
I have this page in .NET/C# and it's throwing the following error - Could
Trying to get this code to work, but I keep running into errors. I
I have this code in my controller and want to test this code line
This code executes handbrakecli (a command line application) and places the output into a
I have this line of code: this.Path = pathLookUpLocation.GetValue(RegLookupKey, null).ToString(); When I run static
Modified the code this time the objective to count the line of code was
I used this code to draw a line in a panel. private bool isMoving

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.