Add Folder in ZipFile

Feb 16, 2015 at 6:00 PM
Edited Feb 16, 2015 at 7:17 PM
Hello , i am dynamically creating html and i am creating zipfile like:
using(ZipFile file = new ZipFile()){
file.AddEntry(''SomeFileName''+'''.html',''<div>This is Saad</div>'');
and than saving the zip file on output stream. Its working fine , zip file download option gets pop up in the broser and is downloaded wherever user saves it>myhtml1

What i need to do is that i want to add a folder and add html into it and than zipit. I can't specify the path for the folder neither i have html on disk that i can map it because html is generating dynamically. Can any one suggest some solution ??>myFolder1->myhtml1>myFolder2->myhtml2 and son on.
Feb 16, 2015 at 8:44 PM
file.AddEntry("myFolder1/myhtml1.html", "<div>This is Saad</div>");