I have an arraylist
ArrayList backupSpecList = new ArrayList();
And a structure:
public struct BackupSpecEntry
{
//for Multiple BACKUP_SPEC_EXCLUDE_PATHS
public string path;
public string inclExcl;
public byte inclExclFlags;
public bool indexContents;
public int serverBackupSpecId;
public int freq;
public int retention;
//for Multiple BACKUP_SPEC_EXCLUDE_FILE_NAMES
public BackupSpecEntry(string Path, string InclExcl, byte InclExclFlags, bool IndexContents,
int ServerBackupSpecId, int Freq, int Retention)
{
path = Path;
inclExcl = InclExcl;
inclExclFlags = InclExclFlags;
indexContents = IndexContents;
serverBackupSpecId = ServerBackupSpecId;
freq = Freq;
retention = Retention;
}
}
I put this structure in the arraylist and send it to the next page as a session
Session["BackupSpecList"] = backupSpecList;
I retrieve this on the next page as
ArrayList jaja = (ArrayList)Session["BackupSpecList"];
All this is happening perfect, but I need help to put this in the database. Can someone please guide me? Thanks.