How to create Directory/File into IIS using ASP.NET C# Entity Framework
My work environment is:
My work environment is:
I would like to change the authentication mode of a web site or application in IIS from Anonymous to Windows and Basic via C# code using Microsoft.Web.Administration. The executing code is not the code of the web application but an external tool. How do I do that?
This is my C# code – I am running the query
Been browsing through SO for some time trying to find a solution to my problem but cannot find one that works.
I’m trying to use Session to record the data of the 1st column of current row to be used in another Web From which will be opened using a LinkButton that is in the GridView.
Goal: Returning a single object of sum and a list of details.
{ Sum: 1, [ { Amount: 2, Hex: '#123456' }, { Amount: 1, Hex: '#123456' } ] }
At the moment I have a web app that works in developer mode, but I am trying to make it work with a self-signed certificate in a Linux Web App in Azure. I have already uploaded the .pfx file to Azure and loaded it into the container by setting the WEBSITE_LOAD_CERTIFICATES application setting. At first, I tried using the store, however, this does not work in Linux.
I’m probably missing something easy here, but I have an ASP.NET website that uses Identity and roles, and I’m trying to restrict access to a folder containing some MP4 videos so that anonymous users cannot see direct links to those videos.
I need to export multiple files with varying file types (pdf, xlsx, .docx) stored in a database (Byte Array) and save them as a single zipped file. How should I handle the multiple files? I’m assuming I would need to first store the files in a list and using MemoryStream? I’m using the ZipArchive class to export the files as a zip file. Assuming this approach will work, I’m unsure of how to pass the list as an argument to the ZipArchive (DownloadMultipleFiles) method.
We have created several user Controls (Ascx) that we render to a webpart zone. Similarly, we have a control containing WebPartManager which is implemented in all the .aspx pages.