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>");