0 Hi,
https://msdn.microsoft.com/en-us/library/astxcyeh(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/system.object.tostring(v=vs.110).aspx
0 Keerthi I think your code is right.
ContentPlaceHolder con = Page.Master.FindControl("MainContainer") as ContentPlaceHolder;
object t = con.FindControl("mahi");
string id = Convert.ToString(t);
string[] words = id.Split(',');
0 First check object types .
ontentPlaceHolder con = Page.Master.FindControl("MainContainer") as ContentPlaceHolder;
object t = con.FindControl("mahi");
if(t.GetType().Equals(typeof(string)))
{
string id =Convert.ToString(t);
}