Thursday, March 22, 2012

DropDown List values

For a controlParameter in the ASP code, how do I retreive the selectedValue of the drop down list?
Would this work?

<asp:controlParameterName="InvoiceNumber"Type="String"ControlID="ddAdSize.Value"/>

Hi

I 'm a beginner at this, but I solved what I think is the same problem as you have, by looking athttp://authors.aspalliance.com/aspxtreme/.
There you will find solutions to many problems.
This is part of my html code:
<Asp:DropDownList Id="ddlCarrier" TabIndex="17" onSelectedIndexChanged="ShowCarrier" Width="150" autopostback runat="server">
</Asp:DropDownList>
And part of the ASP.NET code:
Dim Selection1 As String = _
"SELECT Carrier, Used, Manufacturer, Material, ManufacturedDate " & _
"FROM Carriers " & _
"WHERE Carrier = '" & ddlCarrier.SelectedItem.Text & "'"
Hope this will help you
Rolf Dahlstr?m

No comments:

Post a Comment