TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Venkat S
1.5k
234
203.1k
how to split string dynamically
Jun 14 2011 5:00 AM
Hai Friends,
i want to dispaly data in textbox like
id:111
name:venkat
color:green
so befor i display only for data like
111
venkat
green
.................
now i want to display like this
<pre lang="midl">id:111
name:venkat
color:green</pre>
here is my code
<pre lang="cs">string str2 = "";
string[] strListItems;
int intNumItems = comboBox1.Items.Count;
strListItems = new string[intNumItems];
for (int i = 0; i < comboBox1.Items.Count; i++)
{
strListItems[i] = ds.Tables[0].Rows[comboBox1.SelectedIndex][i].ToString();
str2 = str2 + "\r\n " +strListItems[i];
}
textBox1.Text = str2;</pre>
Please give me any idea.
Thanks
Venkat.S
Reply
Answers (
8
)
Mobile web application interface loading issue on windows phone..
How to delete uploaded images from Temp folder when user is logout using global.asax in asp.net