I have a web form where a user enters some fields via textboxes and dropdownlists. Let's assume one of the textboxes is asking for NAME and there is a dropdownlist named IssuedTo where there are 2 options only: same person from the NAME textbox or some other generic place like MyCompany.
If I have the following for my ddl:
<asp:dropdownlist id="ddlToWho" runat="server">
<asp:ListItem Value="Same" Selected="True">Name</asp:ListItem>
<asp:ListItem Value="Company">Company</asp:ListItem>
</asp:dropdownlist>
[/red]
How can I replace the first value in my DDL with a value from the NAME textbox? I am assuming I will have to do a postback and get that value, but don't know the syntax.
Thanks in advance.
If I have the following for my ddl:
<asp:dropdownlist id="ddlToWho" runat="server">
<asp:ListItem Value="Same" Selected="True">Name</asp:ListItem>
<asp:ListItem Value="Company">Company</asp:ListItem>
</asp:dropdownlist>
[/red]
How can I replace the first value in my DDL with a value from the NAME textbox? I am assuming I will have to do a postback and get that value, but don't know the syntax.
Thanks in advance.