Using Dropdownlist in Datagrid
-
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
-
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
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
totrue
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-----