Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a sqldatasource from dal to presentation
Message
De
15/02/2006 00:23:22
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01096072
Message ID:
01096412
Vues:
13
I've not used the new SqlDataSource class, but I don't see any reason why you couldn't pass it. How about posting some of the relevant code and maybe we can figure out what's going wrong.

~~Bonnie



>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!
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform