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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. DropDownList databinding error

DropDownList databinding error

Scheduled Pinned Locked Moved ASP.NET
designhelpquestion
4 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.
  • F Offline
    F Offline
    For_IT
    wrote on last edited by
    #1

    Hi all I am using following code to bind data with dropdown list I am getting following error during compilation Error 1 Type 'System.Web.UI.WebControls.SqlDataSource' does not have a public property named 'field_defaultvalue'. Is there anything wrong in the syntax? Pls let me know.

    N 1 Reply Last reply
    0
    • F For_IT

      Hi all I am using following code to bind data with dropdown list I am getting following error during compilation Error 1 Type 'System.Web.UI.WebControls.SqlDataSource' does not have a public property named 'field_defaultvalue'. Is there anything wrong in the syntax? Pls let me know.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Try changing the double quotes to single quotes. I haven't looked closely at this but first guess is that is causing the problem.

      F 1 Reply Last reply
      0
      • N Not Active

        Try changing the double quotes to single quotes. I haven't looked closely at this but first guess is that is causing the problem.

        F Offline
        F Offline
        For_IT
        wrote on last edited by
        #3

        SQL query parameters are in single quote.

        S 1 Reply Last reply
        0
        • F For_IT

          SQL query parameters are in single quote.

          S Offline
          S Offline
          sudharsong
          wrote on last edited by
          #4

          '" & Convert.ToInt32(Session["ProductId"]) & "', field_type='" & DropDownList & "', field_ID='" & ddPCBackSide & "'" try by using this hi to all with regards, susa

          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