public string display()
{
string st="";
DataTable dt= (DataTable)ViewState["CurrentData"];
for (int i = 0; i < dt.Rows.Count ; i++)
{
st += dt.Rows[i]["item"].ToString() + ",";
}
return st;
}
This is my function who stores values in string format
for eg:- abc@gmail.com,xya@yahoo.com,dfd@gmail.com,
How can i remove the last comma from the string
for eg:- abc@gmail.com,xya@yahoo.com,dfd@gmail.com
Pls help me...
Thanks & Regards
Priti