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
Rajkumar R
NA
183
220k
How to split and replace in VB.NET
Feb 23 2012 11:41 PM
i have an arugument like this
vXMLStream = YYYYMM="200502" ename="RAJ" age="23" sex="Male" category="Poor" edu_qualification="BBA" community="SC" religion="HINDU" occupation="farmer" month_income="2000"
here i splited this and to stored in an array variable. for that i tried the following. Because here i want to replace occupation="farmer" this one array position alone alone.
and finally i want to concatenate all the array indexes and stored in the vXMLStream variable.
Dim sourceString As String = vXMLStream
Dim arrayOfStrings() As String = sourceString.Split(" ")
System.Web.HttpContext.Current.Response.Write("<script language='javascript'>alert('The following errors have occurred:\n" + arrayOfStrings(2) + "' );</script>")
But Now once i print the data i am getting output like this
YYYYMM="200502"
ename="RAJ"
age="23"
sex="Male"
category="Poor"
edu_qualification="BBA"
community="SC"
religion="HINDU"
occupation="farmer"
Here i want to replace this (occupation="farmer" this is static one) finally i want to concatenate all the array indexes and stored in the vXMLStream variable.
please post solution for this post
Reply
Answers (
1
)
Object reference not set to an instance of an object
Bind name in gridview through linkbutton or hyperlink