0

In example.aspx, i have a html textbox named txtbox_1. In it, I have the following value:

1a,3d,2cc,wedd,aqq

I would like to read individual values separated by commas and place it different textbosz.
currently i can read the textbox value as a whole and not individually.

Hope this is clear. Would appreciate any help! Thanks!

2
Contributors
2
Replies
16
Views
4 Years
Discussion Span
Last Post by Jahliah
0

try something like this

string[] strValues = txtHtmlTextBox.Text.Split(',');

for(int i =0 ; i<= strValues.Length-1;i++)
{
    //assign values to your textboxes like this
    //txtDemo.Text=strValues[i];

}

Regards

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.