i do not have any code for that because i am not really sure where to start.
here is my textbox for the pro
- <div style="min-height: 5px;"></div>
-
<div style="padding-top: 3px; padding-bottom: 3px;">
-
<div style="float: left; width: 75px; text-align: right; padding-right: 5px;">Pro: </div>
-
<div style="float: left; text-align: left;">
-
<asp:TextBox ID="tbProNumber" Width="115px" runat="server"></asp:TextBox>
-
OR
-
</div>
-
<div style="clear: both"></div>
-
</div>
here is the code for the drop down list
- <div style="padding-top: 3px; padding-bottom: 10px;">
-
<div style="height: 18px">Carrier/SCAC </div>
-
<div style="text-align: center; width: 100%">
-
-
<asp:DropDownList runat="server" EnableViewState="true" ID="ddlScacs" AutoPostBack="True"></asp:DropDownList>
-
<div style="min-height: 4px;"></div>
-
<asp:DropDownList runat="server" EnableViewState="true" ID="ddlCarriers" Width="130px" AutoPostBack="True"></asp:DropDownList>
-
</div>
right now when you select something from the dropdown list, nothing changes in the pro text box
- Protected Sub ddlCarriers_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ddlCarriers.SelectedIndexChanged
-
ddlScacs.SelectedIndex = ddlCarriers.SelectedIndex
-
End Sub
-
-
Protected Sub ddlScacs_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ddlScacs.SelectedIndexChanged
-
ddlCarriers.SelectedIndex = ddlScacs.SelectedIndex
-
End Sub
I do not have anything in the textchanged for the pro number yet.
i think that i would just populate the text box based on the selection from the carrier dropdown list and the scac dropdown list. every carrier has a different format for the pro. so i need to format the pro text box based on the selection. Some of them have the format of "123 1234 0" and others 12-123-456", they are different. please help!