TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Devendra Kumar
NA
517
244.8k
how to prevents image not delete if image url exist another
Jan 27 2016 11:29 PM
if delete but image url use another row in grid view
how to check condition if image url count >1 than image not delete
GridViewRow row = (GridViewRow)((ImageButton)e.CommandSource).Parent.Parent;
int ImgId = (int)GridImageMaster.DataKeys[row.RowIndex].Value;
fileupload1.Value = ((Label)row.FindControl("lblImage")).Text;
FileInfo OldImage = new FileInfo(Request.PhysicalApplicationPath + "ProductImages/" + fileupload1.Value);
if (OldImage.Exists)
{
OldImage.Delete();
}
Reply
Answers (
1
)
Retrieve data from Sql server data table column to xml file
how to make airline reservation in asp.net?