Click here to Skip to main content
15,918,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here is my code

DataTable dTable = new DataTable("Dynamically_Generated");
DataColumn Name = new DataColumn("TITLE", typeof(string));
dTable.Columns.Add(Name);
DataColumn Expert = new DataColumn("DESCRIPTION", typeof(string));
dTable.Columns.Add(Expert);
DataColumn Date = new DataColumn("ACTIONS", typeof(string));
dTable.Columns.Add(Date);


/*INSERTING DATA TO DATA TABLE*/
DataRow dataRow = dTable.NewRow();
dataRow["TITLE"] = "Lorem Ipsum";
dataRow["DESCRIPTION"] = "Lorem Ipsum";
dataRow["ACTIONS"] = ResolveUrl("~/Images/edit.png");
dTable.Rows.Add(dataRow);

here i was trying to insert 2 images in Actions column can any one help me plz

Posted

1 solution

Use CSV Format , If you want to store multiple Path of Images in Actions Column.
While you retrieve, Use <StringVarName>.split(',') and you will get all the paths in string Array .
 
Share this answer
 
Comments
Member 8304361 23-Nov-11 0:16am    
how to store multiple images in array plz help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900