Posted on: 2/8/2015 6:44:21 PM | Views : 579

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 ...