Returning Output Parameters using a TableAdapter

G

Guest

I have a typed dataset in asp.net 2.0, that returns 2 output parameters.
Unfortunately I have not been able to capture these values:

Private Sub GetValues()

Dim ta As New dsValuesTableAdapters.MyValuesTableAdapter
Dim dt As New dsValues.MyValuesDataTable
Dim value1 As Integer
Dim value2 As Integer

Try
ta.Fill(dt, value1, value2)
'value1 and value2 both have a zero value, but should have the
value 4 (in this example)
lblValue1.Text = value1.ToString
lblValue1.Text = value1.ToString

Catch ex As Exception
Throw ex
End Try

End Sub

How can this be accomplished using typed tableadapters?
 
G

Guest

Oops! This actually worked correctly; in my real procedure I needed to pass
in an input value, which I did, but I forgot to give it a value (it was
null)! Doh!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top