Click here to Skip to main content
15,920,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to refer to a control from inside a class? Pin
Guffa9-Aug-06 23:41
Guffa9-Aug-06 23:41 
Questionhow to show detail on list view? Pin
campbells8-Aug-06 17:42
campbells8-Aug-06 17:42 
AnswerRe: how to show detail on list view? Pin
Rizwan Bashir8-Aug-06 21:16
Rizwan Bashir8-Aug-06 21:16 
GeneralRe: how to show detail on list view? Pin
campbells8-Aug-06 21:31
campbells8-Aug-06 21:31 
QuestionCustom Control Datasource Pin
Thomas Wells8-Aug-06 12:11
Thomas Wells8-Aug-06 12:11 
AnswerRe: Custom Control Datasource Pin
Thomas Wells8-Aug-06 12:58
Thomas Wells8-Aug-06 12:58 
QuestionGetting xml from webservice into dataset Pin
digsy_8-Aug-06 10:54
digsy_8-Aug-06 10:54 
AnswerRe: Getting xml from webservice into dataset [modified] Pin
Keith Malwitz8-Aug-06 18:01
Keith Malwitz8-Aug-06 18:01 
If you are trying to have the webservice provide a typed-dataset to the client you will need to write a function on the webservice to return one. You will need to first create a dataset in the webservice project (right-click the project name, select 'Add new item', select 'Dataset', and configure it to your liking). You can then write a function to return that dataset; for example:


<Webmethod()> _
Public Function GetTypedDataset() as myDataset
Dim TableAdapter1 as myDatasetTableAdapters.TableAdapter1
Dim TableAdapter2 as myDatasetTableAdapters.TableAdapter2
Dim returnDataset as new myDataset

TableAdapter1.Fill(returnDataset.Table1)
TableAdapter2.Fill(returnDataset.Table2)

Return returnDataset


In your client project, you can select 'Add a new datasource', select 'Web Service', and follow the Wizard to select your web service.

The typed-dataset will then be useable in your client application. To fill it, you would call the function demonstrated above. You would also need to write methods on the webservice to handle updating, and call them from your client as needed.

Hope this helps,

Keith





-- modified at 0:06 Wednesday 9th August, 2006
GeneralRe: Getting xml from webservice into dataset Pin
digsy_9-Aug-06 1:51
digsy_9-Aug-06 1:51 
GeneralRe: Getting xml from webservice into dataset Pin
digsy_9-Aug-06 2:57
digsy_9-Aug-06 2:57 
Questionclick event Pin
iramg8-Aug-06 9:23
iramg8-Aug-06 9:23 
AnswerRe: click event Pin
Stephen McGuire8-Aug-06 12:21
Stephen McGuire8-Aug-06 12:21 
AnswerRe: click event Pin
Dave Kreskowiak8-Aug-06 16:25
mveDave Kreskowiak8-Aug-06 16:25 
AnswerRe: click event Pin
Guerven8-Aug-06 17:10
Guerven8-Aug-06 17:10 
QuestionGlobal Arrays Pin
peterzorbas8-Aug-06 6:20
peterzorbas8-Aug-06 6:20 
AnswerRe: Global Arrays Pin
peterzorbas8-Aug-06 7:06
peterzorbas8-Aug-06 7:06 
QuestionHow to put checkbox in datagrid through DataGridColoumnStyle. Pin
indiaone8-Aug-06 3:38
indiaone8-Aug-06 3:38 
AnswerRe: How to put checkbox in datagrid through DataGridColoumnStyle. Pin
Stephen McGuire8-Aug-06 7:45
Stephen McGuire8-Aug-06 7:45 
GeneralRe: How to put checkbox in datagrid through DataGridColoumnStyle. Pin
indiaone8-Aug-06 18:49
indiaone8-Aug-06 18:49 
GeneralRe: How to put checkbox in datagrid through DataGridColoumnStyle. Pin
Stephen McGuire9-Aug-06 7:24
Stephen McGuire9-Aug-06 7:24 
QuestionIOException question Pin
AntDorr8-Aug-06 3:35
AntDorr8-Aug-06 3:35 
GeneralRe: IOException question Pin
Guffa8-Aug-06 7:29
Guffa8-Aug-06 7:29 
GeneralRe: IOException question Pin
AntDorr8-Aug-06 8:47
AntDorr8-Aug-06 8:47 
GeneralRe: IOException question Pin
Stephen McGuire8-Aug-06 12:20
Stephen McGuire8-Aug-06 12:20 
GeneralRe: IOException question Pin
AntDorr8-Aug-06 22:43
AntDorr8-Aug-06 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.