Hello, I have a FormView which is used to insert a record into a database. Outside of this formview i have a drop down list, I want to grab the value from that drop down list and set one of the text fields within the formview to it's currently selected value. I've tried the following code, but the dynamic categorytextbox line is what seems to not be working.
<asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True"
<asp:TextBox ID="CategoryIDTextBox" runat="server"
Text='<%# Bind("CategoryID") %>' Visible="False" />
protected void FormView1_DataBound(object sender, EventArgs e)
dynamic varCategory = ddlCategory.SelectedValue;
dynamic categoryTextBox = FormView1.FindControl("CategoryIDText
View Complete Post