I'm working in VS.NET 2003. The variable DID is a string variable that is passdi
The full error is:
BC30518: Overload resolution failed because no accessible 'New' can be called with these arguments:
The code that fires this up is:
Dim strdgUInfo as String = "SELECT L.ID, L.Name, L.City, L.State, L.YearGraduated, L.D_ID FROM UInfo L WHERE L.D_ID = " & DID
Dim cb as SqlCommandBuilder
'SqlDataAdapter dgUInfoAdapter = new SqlDataAdapter (strdgUInfo, objConnection)
Dim dgUInfoAdapter as SqlDataAdapter
--> --> dgUInfoAdapter = New SqlDataAdapter(strdgUInfo, objConnection)
'DataSet dsdgUInfo = new DataSet()
Dim dsdgUInfo as DataSet
dsdgUInfo = new DataSet()
dgUInfoAdapter.Fill(dsdgUndergradInfo, "dtdgUndergradInfo")
dgUInfo.DataSource = dsdgUInfo.Tables["dtdgUInfo"]
dgUInfo.DataBind();
----------------------------------
Any assistance is greatly appreciated.
The full error is:
BC30518: Overload resolution failed because no accessible 'New' can be called with these arguments:
The code that fires this up is:
Dim strdgUInfo as String = "SELECT L.ID, L.Name, L.City, L.State, L.YearGraduated, L.D_ID FROM UInfo L WHERE L.D_ID = " & DID
Dim cb as SqlCommandBuilder
'SqlDataAdapter dgUInfoAdapter = new SqlDataAdapter (strdgUInfo, objConnection)
Dim dgUInfoAdapter as SqlDataAdapter
--> --> dgUInfoAdapter = New SqlDataAdapter(strdgUInfo, objConnection)
'DataSet dsdgUInfo = new DataSet()
Dim dsdgUInfo as DataSet
dsdgUInfo = new DataSet()
dgUInfoAdapter.Fill(dsdgUndergradInfo, "dtdgUndergradInfo")
dgUInfo.DataSource = dsdgUInfo.Tables["dtdgUInfo"]
dgUInfo.DataBind();
----------------------------------
Any assistance is greatly appreciated.