Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. DropDown List Selected Index Change Problem

DropDown List Selected Index Change Problem

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jahirhstu
    wrote on last edited by
    #1

    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

    A A 2 Replies Last reply
    0
    • J jahirhstu

      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

      A Offline
      A Offline
      Arindam Sinha
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • J jahirhstu

        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

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups