Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read The DropDownList from VBScript?

Status
Not open for further replies.

dbayona

Technical User
Nov 11, 2007
1
CO
Hi:
i need to read the selected value of DropDownList from VBScript, the code is the followig, but i dont know what's the problem?

Codigo:

<asp: DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Calidad de Contenidos</asp:ListItem>
<asp:ListItem>GOD conenidos</asp:ListItem>
<asp:ListItem>Perfil Usuarios</asp:ListItem>
</asp: DropDownList>

<script language="VBScript">

Function btnpru_OnClick()

//call the function with the selected value
BuildPivot(DropDownList1.SelectedItem.Text) ???????

End Function


Function BuildPivot(valor)
.....................
.....................

End Function

</script>


 
[1]
[tt]Function btnpru_OnClick()

[highlight]'//[/highlight]call the function with the selected value
BuildPivot DropDownList1.[blue]options(DropDownList1.selectedIndex)[/blue].Text

End Function
[/tt]
[2] The forum dedicated to asp.net is here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top