Hi there,
I use below code to remove picture in datalist, but fade function not work, what is wrong with it?
protected void RemPicfrGlry_Click(object sender, EventArgs e)
{
ImageButton button = (sender as ImageButton);
//Get the command argument
string fileName = Server.MapPath("~/Uploads/booksPic/Gallery/") + folderGallery+"/"+ button.CommandArgument.ToString();
System.IO.File.Delete(fileName);
//BindDataList();
callJsFunction("chkTab('rad3')");
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "name1", "top.$get(\"" + button.ClientID + "\").closest('div').fadeOut(1000);", true);
}
Go to the complete details ...