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?

ASP.Net?

Scheduled Pinned Locked Moved Web Development
helpcsharpjavascriptasp-netcom
5 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.
  • M Offline
    M Offline
    Muhammad Waqas Butt
    wrote on last edited by
    #1

    I've a comobbox and i'm fill this comobbox like this: =========================================================================================== oleDbDataAdapter1.Fill(dataSet31); dpdhead.DataSource = dataSet31.Tables[0].DefaultView; dpdhead.DataTextField = dataSet31.tbacdes.ac_headColumn.ToString();//Display Heads dpdhead.DataValueField = dataSet31.tbacdes.ac_idColumn.ToString();// Heads Ids dpdhead.DataBind(); =========================================================================================== and than i want to get Comobbox select item head id. But when i select the comobbox value page refresh, first time it return head id but when i again select a value i got an javascript error like this: ==================================== Error: Invaild Syntax Code: 0 ==================================== And comobox stop working. and page doesn't work. Please help me out in this matter (Urgent)

    |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

    M C 2 Replies Last reply
    0
    • M Muhammad Waqas Butt

      I've a comobbox and i'm fill this comobbox like this: =========================================================================================== oleDbDataAdapter1.Fill(dataSet31); dpdhead.DataSource = dataSet31.Tables[0].DefaultView; dpdhead.DataTextField = dataSet31.tbacdes.ac_headColumn.ToString();//Display Heads dpdhead.DataValueField = dataSet31.tbacdes.ac_idColumn.ToString();// Heads Ids dpdhead.DataBind(); =========================================================================================== and than i want to get Comobbox select item head id. But when i select the comobbox value page refresh, first time it return head id but when i again select a value i got an javascript error like this: ==================================== Error: Invaild Syntax Code: 0 ==================================== And comobox stop working. and page doesn't work. Please help me out in this matter (Urgent)

      |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=2119873#xx2119873xx

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      1 Reply Last reply
      0
      • M Muhammad Waqas Butt

        I've a comobbox and i'm fill this comobbox like this: =========================================================================================== oleDbDataAdapter1.Fill(dataSet31); dpdhead.DataSource = dataSet31.Tables[0].DefaultView; dpdhead.DataTextField = dataSet31.tbacdes.ac_headColumn.ToString();//Display Heads dpdhead.DataValueField = dataSet31.tbacdes.ac_idColumn.ToString();// Heads Ids dpdhead.DataBind(); =========================================================================================== and than i want to get Comobbox select item head id. But when i select the comobbox value page refresh, first time it return head id but when i again select a value i got an javascript error like this: ==================================== Error: Invaild Syntax Code: 0 ==================================== And comobox stop working. and page doesn't work. Please help me out in this matter (Urgent)

        |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Please don't cross post, or post again when your original question is still visible. That's just annoying. Also, as has been said to you, try to come up with intelligent subject lines. What makes this dataSet31, and not dataSet30 ? Please tell me your page doesn't contain over 30, numbered data sets ? Are you injecting any jscript into the page ? It's very odd that the auto generated script would create an error.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        M 1 Reply Last reply
        0
        • C Christian Graus

          Please don't cross post, or post again when your original question is still visible. That's just annoying. Also, as has been said to you, try to come up with intelligent subject lines. What makes this dataSet31, and not dataSet30 ? Please tell me your page doesn't contain over 30, numbered data sets ? Are you injecting any jscript into the page ? It's very odd that the auto generated script would create an error.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          M Offline
          M Offline
          Muhammad Waqas Butt
          wrote on last edited by
          #4

          Well, thanks and sorry. Actually I didn't understand what happend to me. I want to load data in comobox from Database and than get the selecteditem id. example ===================================== Department Header //display member : Student fee Department Id // value member Id: 4 ==================================== and on selectedindex_change function i want to get department id, while page refresh. I have successfulyy fill the comobox but when i change value in comobox first time it give the department id while page reload, but after that page got an error (Invaild syntax) and page stop working, comobox stop working. Please help in this. Thanks and my best regards,

          |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

          C 1 Reply Last reply
          0
          • M Muhammad Waqas Butt

            Well, thanks and sorry. Actually I didn't understand what happend to me. I want to load data in comobox from Database and than get the selecteditem id. example ===================================== Department Header //display member : Student fee Department Id // value member Id: 4 ==================================== and on selectedindex_change function i want to get department id, while page refresh. I have successfulyy fill the comobox but when i change value in comobox first time it give the department id while page reload, but after that page got an error (Invaild syntax) and page stop working, comobox stop working. Please help in this. Thanks and my best regards,

            |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            The setting of the data source ( the code you posted ) should only occur the first time, that is, in a Not Page.IsPostback block. However, not doing this would typically cause you to lose your selection, not for the page to blow up. Something strange is going on, here. I think you need to post some more of hte code.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            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