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. Dropdownlist

Dropdownlist

Scheduled Pinned Locked Moved ASP.NET
databasehelp
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.
  • S Offline
    S Offline
    samsonx
    wrote on last edited by
    #1

    Hi i have one dropdownlist and one button...if i selected the dropdownlist value and then clicked the button, the datas in the table have to be filtered using dataview... I got the error in dv=ds.Tables["selectemp"].Defaultview; selectemp is the stored procedure...please do need full

    With Regards, Samson

    _ M 2 Replies Last reply
    0
    • S samsonx

      Hi i have one dropdownlist and one button...if i selected the dropdownlist value and then clicked the button, the datas in the table have to be filtered using dataview... I got the error in dv=ds.Tables["selectemp"].Defaultview; selectemp is the stored procedure...please do need full

      With Regards, Samson

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      samsonx wrote:

      dv=ds.Tables["selectemp"].Defaultview; selectemp is the stored procedure

      Why are you using the stored procedure there with ds.tables there you need to specify the table name or index of the table.

      Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • S samsonx

        Hi i have one dropdownlist and one button...if i selected the dropdownlist value and then clicked the button, the datas in the table have to be filtered using dataview... I got the error in dv=ds.Tables["selectemp"].Defaultview; selectemp is the stored procedure...please do need full

        With Regards, Samson

        M Offline
        M Offline
        MinhajuddinK
        wrote on last edited by
        #3

        Exactly! You are placing a stored procedure in the place of an Index. If you want to call a stored procedure, there are other neat ways of doing it. Like using a stored procedure in a SQLDATASOURCE.

        You don't have to be AFRAID!

        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