SelectionValue

public static int SelectionValue(this DropDownList ddl)
{
    var r = -1;
    int.TryParse(ddl.SelectedValue, out r);
    return r;
}
Example:
var selectedValue = ddl.SelectedValue();

Description

Returns Dropdownlist Selected Value as Integer

Details

Double click on the code to select all.

 

;