Solved

How to get rid of 'undefined' is null or not an object error?

Posted on 2008-10-08
2
472 Views
Last Modified: 2008-10-08
I currently have a page with 2 radio buttons to determine if the user is a returning customer or a new customer.  When the page loads it displays the radio buttons with the returning customer selected.  Below it is a login control that is contained in a separate user control.  If the user wishes to then login the page works fine but if they try to select the "new customer" radio button it does nothing and comes up with the following error:  'undefined' is null or not an object.  What should happen when the radio button is clicked is that the login control should be hidden and panel containing the new user fields should appear.
0
Comment
Question by:ciphron
2 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 500 total points
Comment Utility
It seems that you use JavaScript to find the login control and hide it if user selects "new customer". Check your JavaScript to make sure it indeed finds the control before accessing any property/style of the control.
0
 
LVL 26

Expert Comment

by:Anurag Thakur
Comment Utility
can we have a look at your javascript code and the server side code from where you configure your javascript events
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now