K
K B
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 EditItemTemplate
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(dvAddProcess.FindControl("ddlWfEdit"),
DropDownList)).SelectedValue
e.Command.Parameters("@WorkFlowDoc").Value = sWF
I've also tried adding a ControlParameter to the SqlDataSource Update
parameters list:
<asp:ControlParameter ControlID="dvAddProcess$ddlWfEdit" Type="string"
Name="WorkFlowDoc" PropertyName="SelectedValue" />
Could anyone tell me where I'm going wrong?
thanks,
KB
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 EditItemTemplate
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(dvAddProcess.FindControl("ddlWfEdit"),
DropDownList)).SelectedValue
e.Command.Parameters("@WorkFlowDoc").Value = sWF
I've also tried adding a ControlParameter to the SqlDataSource Update
parameters list:
<asp:ControlParameter ControlID="dvAddProcess$ddlWfEdit" Type="string"
Name="WorkFlowDoc" PropertyName="SelectedValue" />
Could anyone tell me where I'm going wrong?
thanks,
KB