Guys i have a <select id="select1" runat="server" /> control on a web page
i have used a javascript to populate the items of the <select> on runtime
now i want to know how to access there elements of <select> (selectedIndex or selectedValue) by asp vb.net

Thanks in advance :)

select1.Items[0].Value
select1.Items[0].Text its in C#, VB should be somehow same.

nope i tried that earlier but it doesnt work !! the elements of select are being generated dynamically by javascript.

Will you please share cod snippet?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.