PDA

View Full Version : Moving information from a drop down list to a place on the same page.



Lecutus
09-10-2008, 08:54 PM
Moving information from a drop down list to a place on the same page.
Details are, I want to move the DataValueField of the picked item, display, and eventually use the info to gather information.

The list shows truck1, truck2, etc. The data is 190.180.170.001, 190.180.170.002.

I figure if I can get the data I can move on.

I'm developing in Visual studio 2005.

The basic form is below:


<form id="form1" runat="server">
<div>
Pump Truck
<asp:DropDownList ID="PumpTruckList" runat="server" DataValueField="PumpTruckList.Value" AutoPostBack="True">
<asp:ListItem>Select Truck to Start</asp:ListItem>
<asp:ListItem Value="190.180.170.001">Pump Truck 1</asp:ListItem>
<asp:ListItem Value="190.180.170.002">Pump Truck 2</asp:ListItem>
<asp:ListItem Value="190.180.170.003 ">Pump Truck 3 </asp:ListItem>
<asp:ListItem Value="190.180.170.004">Pump Truck 4</asp:ListItem>
<asp:ListItem Value="190.180.170.105 ">Pump Truck 5 </asp:ListItem>
<asp:ListItem Value="190.180.170.006 ">Pump Truck 6 </asp:ListItem>
<asp:ListItem Value="190.180.170.007">Pump Truck 7</asp:ListItem>
<asp:ListItem Value="190.180.170.008">Pump Truck 8</asp:ListItem>
<asp:ListItem Value="190.180.170.009">Pump Truck 9</asp:ListItem>
<asp:ListItem Value="190.180.170.010">Pump Truck 10</asp:ListItem>
<asp:ListItem Value="190.180.170.011">Pump Truck 11</asp:ListItem>
<asp:ListItem Value="190.180.170.012">Pump Truck 12</asp:ListItem>
</asp:DropDownList><br />
<br />
<br />
Hello from <! Ethernet address should go Here!>&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
</form>