using System.Web.Script.Serialization;
public partial class aspcodes : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
JavaScriptSerializer serializer = new JavaScriptSerializer();
serialdetails ys = serializer.Deserialize<serialdetails>
(strGetLoginPage_fb_y);
Dictionary<string, object> dic = new Dictionary<string,
object>();
string teststr = "";
for (int x = 0; x < Convert.ToInt32(ys.total_matches); x++)
{
dic = ((System.Collections.Generic.Dictionary<string,
object>)(((object[])(ys.contacts))[x]));
foreach (KeyValuePair<string, object> kvp in dic)
{
teststr = kvp.Value.ToString();
}
}
}
}
public class serialdetails
{
public string str1;
public string str2;
public object contacts;
}
To delete all files and folders inside a
directory but not the directory- ASP.net C#