DropDown List Selected Index Change Problem
-
Helo All, I am using ASP.NET 3.5. I have a form with a DropDownList contain the User Code. At Selected Index Change the form shows the respecting data. But at times it shows the data but the following error Message is generate. "Microsoft JScript runtime error: 'this.get_element().style' is null or not an object" I am using master Page. There is an update panel in the master page. How can i solve not to generate this error message when selected index change at DropDownList. Thanks in advance
-
Helo All, I am using ASP.NET 3.5. I have a form with a DropDownList contain the User Code. At Selected Index Change the form shows the respecting data. But at times it shows the data but the following error Message is generate. "Microsoft JScript runtime error: 'this.get_element().style' is null or not an object" I am using master Page. There is an update panel in the master page. How can i solve not to generate this error message when selected index change at DropDownList. Thanks in advance
jahirhstu wrote:
'this.get_element().style' is null or not an object
It seems that you are trying to access the style before the element is initialized. Can you debug by putting some alert in Javascript? Do not know if this helps you much.
Regards, Arindam Sinha MyBlog - http://arindamsinha.wordpress.com/ Please give your feedback on this answer.
-
Helo All, I am using ASP.NET 3.5. I have a form with a DropDownList contain the User Code. At Selected Index Change the form shows the respecting data. But at times it shows the data but the following error Message is generate. "Microsoft JScript runtime error: 'this.get_element().style' is null or not an object" I am using master Page. There is an update panel in the master page. How can i solve not to generate this error message when selected index change at DropDownList. Thanks in advance
This is a Javascript error, where the element returns null. I think if you set the autopostback of the Dropdownlist to false, the problem will be cured. Or you can paste your designer code here to help you. :rose:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.