MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.
An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.dll
<asp:DropDownList ID="DropDownList3" runat="server" DataValueField="Line" SelectedValue='<%#DataBinder.Eval(Container.DataItem, "Line")%>' OnDataBinding="getLines"></asp:DropDownList>
Protected Sub getLines(sender As Object, e As System.EventArgs) Dim DropDownList3 As DropDownList = DirectCast(sender, DropDownList) Dim cmd As SqlDataAdapter = New SqlDataAdapter("select Line from dbo.production_lines order by Line", cnn) Dim ds As DataSet = New DataSet() cmd.Fill(ds) DropDownList3.DataSource = ds DropDownList3.DataTextField = ("Line") DropDownList3.DataBind() ds.Clear() cmd.Dispose() End Sub