Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
10
Answers
add new cloumn to exsit dataset
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
MR alaa
8y
433
1
Reply
hi every body
i have folder in my website where i can loop in it and get all files ordered i need to add anew column to an exist data set this my code
string sourceDir = Server.MapPath("~/folder1/folder2/");
string[] fileEntries = Directory.GetFiles(sourceDir).OrderBy(filename => filename).ToArray();
foreach (string fileName in fileEntries)
{
string x = "<img src=\"" + Path.GetFileName(fileName) + "\" /><br />";
}
this data set already have data i need to add anew colum to the same dataset with the image path from previous code
if (ds.Tables.Count > 0)
{
// do something
}
how it can be done
Post
Reset
Cancel
Answers (
10
)
Next Recommended Forum
Error during installing Nuget package or pagedlist
Excel Export Need steps