Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making a dataset available in the designer
Message
De
11/10/2003 12:30:02
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00837820
Message ID:
00837824
Vues:
33
>Michael, I'm not certain of this, but I think it has to do with the InitializeComponent Sub in the codbehind page. Notice when you drop a dataset on a page the ds is declared at the top of the class WithEvents and instaniated in the InitializeComponent Sub. I haven't tried adding a control like this programmatically, so don't know how that would work. Seems it should. I normally add the dataset to the designer, let it generate its code, then modify it in the codebehind.
>
>Okay, I just tried it and the ds I added programmatically did appear as a datasource, so maybe you should look at that.

While doing some research on this, I dropped a DataSet control on the Web form and configure it entirely to match the DataSet data received from the Web Service. I didn't succeed to have the data appear in the DataList but the aspx didn't give any error at run time.

I assume however that I don't have to do all that as the data structure should be recognized automatically by an approach such as you just described.

I'll keep looking at this.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform