J
jm
I have datagrid. On this datagrid there is a button and a
dropdownlist.
When I press the button, I want the selectedIndex of the dropdownlist.
There is a button and a dropdownlist for each datagrid row that is
populated from the database. Example, five rows returned, five
buttons, and five dropdownlists.
I know I am supposed to use the ClientID, but I cannot figure out how
to use ClientID to build the Javascript for each row returned. I just
can't picture it.
In regular Javascript, I can use:
var the_select = document.getElementById("ISMS_List__ctl1_mni_inv_type_ddl");
var the_index = the_select.selectedIndex;
o.mni_type_code = the_select.options[the_index].text;
But, of course, I need the correct name of the dropdownlist for the
row that I am on. I don't understand it. Please help. Thank you.
dropdownlist.
When I press the button, I want the selectedIndex of the dropdownlist.
There is a button and a dropdownlist for each datagrid row that is
populated from the database. Example, five rows returned, five
buttons, and five dropdownlists.
I know I am supposed to use the ClientID, but I cannot figure out how
to use ClientID to build the Javascript for each row returned. I just
can't picture it.
In regular Javascript, I can use:
var the_select = document.getElementById("ISMS_List__ctl1_mni_inv_type_ddl");
var the_index = the_select.selectedIndex;
o.mni_type_code = the_select.options[the_index].text;
But, of course, I need the correct name of the dropdownlist for the
row that I am on. I don't understand it. Please help. Thank you.