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. General Programming
  3. C#
  4. Using Dropdownlist in Datagrid

Using Dropdownlist in Datagrid

Scheduled Pinned Locked Moved C#
questiondatabasehelp
2 Posts 2 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.
  • T Offline
    T Offline
    t_m20020521
    wrote on last edited by
    #1

    I am creating a web application using dropdownlists in the datagrid. My question is. I have two dropdownlists in the datagrid. First one select * from sq. That is working Ok. After the first one is selected the data and pass the argument to Second one which is retrieved data. Second one does not work. Nothing. Second query likt select A from sq where name = 'argument'. Is anyone can help me:|? Thanks

    H 1 Reply Last reply
    0
    • T t_m20020521

      I am creating a web application using dropdownlists in the datagrid. My question is. I have two dropdownlists in the datagrid. First one select * from sq. That is working Ok. After the first one is selected the data and pass the argument to Second one which is retrieved data. Second one does not work. Nothing. Second query likt select A from sq where name = 'argument'. Is anyone can help me:|? Thanks

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Unless you're using auto-postback, you'll need to use client-side Javascript to do this. Remember that ASP.NET describes server-side code written in a language that targets the CLR. Only some basic javascript is necessary for some ASP.NET controls to work, but anything in HTML (what ASP.NET generates for most classes) that must change without hitting the server must be performed by client-side script. So, either set AutoPostBack to true on your first drop-down, or pass all necessary data to both drop-downs and use some javascript and event handlers on the drop-downs (client-side event handlers) to select the appropriate data.

      -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

      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