Hello all,
First off I am using VB.net
I have a dropdown list in the Item template.
I would like the user to select a value and update the database without clicking an update button.
Here is the Code for the DDL
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource2" DataTextField="provider"
DataValueField="provider" AutoPostBack="True" AppendDataboundItems="true" OnSelectedIndexChanged = "ddl_SelectedChange"
SelectedValue='<%# Bind("provider") %>'>
<asp:ListItem Value=""></asp:ListItem>
</asp:DropDownList>
here is my Behind code I am not sure what to put after the Dim statement
Protected Sub ddl_SelectedChange(ByVal sender As Object, ByVal e As System.EventArgs)
Dim ddl = DirectCast(sender, DropDownList)
Any help would be greatly appreciated. :)
End Sub