5
Answers

problem with split method

Ankit Kumar

Ankit Kumar

9y
326
1
Hey guys please help me,
i am removing forward slash from a string using split method but it's not getting executed.
 i have used this code.
 
string initrainingid;
initrainingid = startdate.Text;
string[] seperator = initrainingid.Split('/');
foreach (string trining_id in seperator)
{
trainingid = trainingid + seperator;
}
Response.Write("<script>alert('Trining id is"+trainingid+"');</script>");
 
 
Answers (5)