Z
Zamdrist
Could someone educate me why this code doesn't work if the text
argument of the SqlCommand method is a view, as opposed to a stored
procedure when the view returns the same field(s) of information?
Unfortunately debugging in ASP.Net is beyond me at the moment and all I
get is a generic error back, otherwise I would provide that info.
Thanks...
If Not Page.IsPostBack Then
adoConn.Open()
Dim adoComm_UserList As New SqlCommand("sp_SelectUserList",
adoConn)
With ddlUserList
.DataSource =
adoComm_UserList.ExecuteReader(CommandBehavior.CloseConnection)
.DataTextField = "fldUser"
.DataValueField = "fldUser"
.DataBind()
End With
End If
argument of the SqlCommand method is a view, as opposed to a stored
procedure when the view returns the same field(s) of information?
Unfortunately debugging in ASP.Net is beyond me at the moment and all I
get is a generic error back, otherwise I would provide that info.
Thanks...
If Not Page.IsPostBack Then
adoConn.Open()
Dim adoComm_UserList As New SqlCommand("sp_SelectUserList",
adoConn)
With ddlUserList
.DataSource =
adoComm_UserList.ExecuteReader(CommandBehavior.CloseConnection)
.DataTextField = "fldUser"
.DataValueField = "fldUser"
.DataBind()
End With
End If