How to use service account inside the aspx file instead of web.config

Gani_tpt 1,586 Reputation points
2021-08-24T10:19:26.517+00:00

I am maintaining asp.net application.

Inside the application, i have employee page with hyperlink.

When end user click the hyperlink, the corresponding file get open and download from the file server path.

I am using the service account to access the file from the file path (file server path).

Here, i don't want to use the service account in web.config file. because, if i use the service account in web.config file then the end user can access all other pre-folder.

To avoid this, Is it possible to use service account inside the aspx page....?

Internet Information Services
{count} votes