How to get dropdownlist selected value in Page_Init event c# -


i tried below code in page_init() getting null values. how dropdownlist selected values in page_init().

protected void page_init(object sender, eventargs e) {             string test1 = request.form[ddlprojectresource.text];             string test2 = request.form[ddlprojectresource.selectedvalue]; } 


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -