I have Data Recive it from stordProceder and i want to Get this data using foreach loop to equal it with local variable
Using foreach Loop
Collapse
X
-
What have you tried so far?Originally posted by vit159I have Data Recive it from stordProceder and i want to Get this data using foreach loop to equal it with local variable
How are you retrieving your data from the database?
Could you please post a snippet of code with what you've tried so far and better explain the problem?
Please check out this .Net article on how to use a database in your program.
Once you've stored all the information you've retrievd from your store proceedure into a data reader you'll have to use a while loop to get the information out of it.
Eg.
[code=vbnet]
While myDataReader.Re ad
TextBox1.Text = TextBox1.Text + " " + CType( dr.Item("FieldN ame"), String)
End While
[/code]
Comment