Click here to Skip to main content
14,919,811 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
' The shared method

Public Shared Function GetDropdownValue(ByVal dropdownList as DropdownList) as string

   return dropdownList.SelectedValue

End Function

'To call it

Dim value as string = GetDropdownValue(myDropdownList)




http://forums.asp.net/t/1238597.aspx[^]

[edit]C# references replaced with VB to match code fragment - OriginalGriff[/edit]
Posted
Updated 22-Apr-12 22:18pm
v2
Comments
Herman<T>.Instance 23-Apr-12 3:58am
   
and what is your problem?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900