S
SGSmith
I'm trying to find a way to determine the value of a dropdownlist without forcing a postback. The dropdown is actually a template column in a datagrid and I need to find out what the value is before posting back to the server. When the user selects an associated button column, I want to determine determine what the dropdownlist's selectedvalue is. What gets returned though is the initial value.
If I use the following on the datagrid_itemcommand event:
sString = CType(e.Item.FindControl("ddFieldName"), DropDownList).SelectedValue
.... it returns the selectedvalue prior to being changed by the user. Without the dropdownlist being set to autopostback, it does not appear to pick up that a user has in fact changed the control.
Is there a way to access the changed selectedvalue without forcing the control to postback to the server?
Thanks for any help you can provide,
Stephen Smith
VB .Net
If I use the following on the datagrid_itemcommand event:
sString = CType(e.Item.FindControl("ddFieldName"), DropDownList).SelectedValue
.... it returns the selectedvalue prior to being changed by the user. Without the dropdownlist being set to autopostback, it does not appear to pick up that a user has in fact changed the control.
Is there a way to access the changed selectedvalue without forcing the control to postback to the server?
Thanks for any help you can provide,
Stephen Smith
VB .Net