I'm trying to figure out how to populate an ASP.NET Textbox with the option selected from a DDL without using postbacks, making it instant. It seems like JavaScript would be the best approach for this, but most resources I've found are for standard HTML elements and don't work with ASP objects. Here's my DDL and Textbox code:
<asp:DropDownList runat="server" ID="DDLSalesPerson" DataValueField="keyid" DataTextField="FullName" />
<asp:TextBox runat="server" id="txtSalesPerson" />
The options in my DDL are fetched from SQL on the code-behind page.
If anyone has experience with building the proper code for this functionality, I'd greatly appreciate your help. Thank you.