Having setup my Autocompletebox properly and returning values, I now need to take the DataValueField and update the database when they click the update button. However in my code-behind I am unable to reference the selectedvalue.
<
telerik:RadAutoCompleteBox
ID
=
"radEmailUser"
runat
=
"server"
DataSourceID
=
"SqlDataSource1"
DataTextField
=
"Contact_Email"
DataValueField
=
"EmailListID"
Filter
=
"StartsWith"
InputType
=
"Text"
Width
=
"300px"
DropDownWidth
=
"300px"
TextSettings-SelectionMode
=
"Single"
>
<
DropDownItemTemplate
>
<
table
><
tr
><
td
>
<%# DataBinder.Eval(Container.DataItem, "contact_Email")%> (
<%# DataBinder.Eval(Container.DataItem, "first_name")%>
<%# DataBinder.Eval(Container.DataItem, "last_name")%>)
</
td
></
tr
></
table
>
</
DropDownItemTemplate
>
</
telerik:RadAutoCompleteBox
>
I would like to get the value (EmailListID) that is selected and pass that onto a stored procedure for updating. Unable to properly reference the value. How can I get the value?