Hi there,
A Label doesn't have a DataSource. Instead, you can bind its Text property in code behind. Something like this will work:
Label38.Text = serverprice(Label2.text)
Where serverprice returns a *string*, like this:
Return myDataSet.Tables(0).Rows(0)("YourColumn").ToString ()
This code returns the column called YourColumn from the first row of the first table in the dataset.
If you only need a single string returned from serverprice, then you could use the quicker DataReader or a stored procedure with out put parameters.
HtH,
Imar
P.S. Nice and descriptive variable names.... ;)
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Tarantula by
This Mortal Coil (Track 6 from the album:
Filigree and Shadow)
What's This?