Not able to understand what exactly your requirement .. but still try this code.it may help you.
ViewState["data"] = "12,Rajesh";
string name = ViewState["data"].ToString();
string[] id = name.Split(',');
Response.Write("Id is : " + id[0].ToString());
Response.Write("<br>Name is : " + id[1].ToString());