Information générale
Titre:
Passing a sqldatasource from dal to presentation
Versions des environnements
Network:
Windows 2003 Server
I've been trying to use the sqldatasource but I'm running into a problem. I want to create it on the backend in my data access layer. I have this.
public class GetHospitals
{
string hospital;
string hospitalid;
sqldatasource batches;
}
I set all of its commands and its connection string and I am trying to send it to the presentation layer but always get an object not set to an instance of an object error. This worked fine when I was using a dataset but since I have switched to sqldatasource, its not working. Can I pass a sqldatasource? Any help on this would be helpful, thanks!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement