Hi,
I've tried this several ways but get the error that the control can't be
found.
I have a details view with a dropdownlist in the EditItemTemplat e
populated and assigned the selected value in code.
I need to get the selected value when the record is saved. I've tried
using the following in the SqlDataSource updating event:
Dim sWF As String = (CType(dvAddPro cess.FindContro l("ddlWfEdit" ),
DropDownList)). SelectedValue
e.Command.Param eters("@WorkFlo wDoc").Value = sWF
I've also tried adding a ControlParamete r to the SqlDataSource Update
parameters list:
<asp:ControlPar ameter ControlID="dvAd dProcess$ddlWfE dit" Type="string"
Name="WorkFlowD oc" PropertyName="S electedValue" />
Could anyone tell me where I'm going wrong?
thanks,
KB
*** Sent via Developersdex http://www.developersdex.com ***