Correct if I'm wrong but you have a dropdownlist of value-text pairs that OnChange you want one TextBox to hold the value and the other to hold the text. If I've got the wrong end of the stick let me know!
HTML (you might be databinding the list but I'm using hardcoded listitem for this example):
Code:
<asp:DropDownList id="ddlStart" runat="server" AutoPostBack="true" OnSelectedIndexChange="ddlStart_SelectedIndexChange">
<asp:ListItem Value="1" Text="First" />
<asp:ListItem Value="2" Text="second" />
<asp:ListItem Value="3" Text="Third" />
<asp:ListItem Value="4" Text="Fourth" />
<asp:ListItem Value="5" Text="Fifth" />
</asp:DropDownList>
<asp:TextBox id="txtValue" runat="server" />
<asp:TextBox id="txtText" runat="server" />
Code behind:
Code:
void ddlStart_SelectedIndexChange(object sender, EventArgs e) {
txtValue.Text = ddlStart.SelectedValue;
txtText.Text = ddlStart.Items[ddlStart.SelectedIndex];
}
HTH
DJ