for that i am getting name and its values in two variables namely "name" and "id".
the ddl text is populated using this code,
document.Auto.ddlComp.options[i] = new Option(name); // working fine
but to populate its correspoding values for text i used,
// document.Auto.ddlComp.options[i].value = new Option(id);
its not working. please tell me how to populate the corresponding ddl values to its text.