For storing the document with the name having the value taken by Database, you need to access the values from the database and fill it in a DataTable. From the DataTable we can access the row values using the below code:
foreach (DataRow row in table.Rows)
document.Save(row + ".doc", FormatType.Doc);
Please refer the sample from the below link which illustrates the above:
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.