Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 03, 2012 12:54 PM by Rohit Binjola
May 01, 2012 06:09 PM|LINK
I dont know if this is the right place to post this but here is the problem i need help with..
There is a long string coming from the serial port every t seconds which is seperated by spaces.. eg. "1000 1000 1 500 2"..i have used AJAX for this..
I want to extract every string and display them on seperate text boxes in real time as the get fed from the serial port..
Any idea on how to do this using VB code in ASP.Net?
May 01, 2012 07:54 PM|LINK
You can simply split the string by a space into an array
Dim arr() as string = myString.Split(" ")
May 01, 2012 08:42 PM|LINK
thank you for the response..but how can i proceed to display these strings into seperate textboxes from the array?
May 03, 2012 07:24 AM|LINK
You should dynmaic create textbox for your array,
Here is a example:
If you can't understand C# Use this tool:
Hope it helpful.
May 03, 2012 12:54 PM|LINK
you can write loop upto array.length-1
inside that loop you can create dynamic textboxes and assign values seperatle like::
Textbox newtextbox = new Textbox();
newtextbox.Text = array[i];