Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a dataset available in the designer
Message
From
11/10/2003 12:30:02
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00837820
Message ID:
00837824
Views:
34
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform