Content
How do I pass dynamically created Checkbox to Controller?
Hi all, hope you are well. Question, I have a form that creates dynamic number checkbox groups and I am looking for some info on how I can pass the selected values to the controller. Example: Lets say there are 2 checkbox groups created (a user could…
There is a duplicate 'oracle.manageddataaccess.client' section defined
Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…


Access to path denied for files in WWWRoot folder
I am trying to access two folders that resides inside wwwRoot. The folders are "BlankPDFFiles" and "FilledPDFFiles". I am trying to get the blank PDF files that resides inside BlankPDFFiles folder and write some data inside the file…


how do you default a dropdown list value in mvc razor using vb.net and c#
hello I am trying to set a default value for a dropdownlist in vb.net and in c# mvc razor view here is how I populate the list here is how I create the drop list in mvc razor the data options for my list are I would like to default the dropdownlist to…


Getting User Details from Azure AD in ASP.NET
In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…
How to create environments with appSettings?
In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…


Should I learn HTML, CSS, jQuery and Bootstrap or SQL Server and Vanilla JS
Will have a good command of HTML, CSS, jQuery, and Bootstrap be beneficial for a Dot Net Web developer? I have just started learning ASP.NET MVC. Instead of learning jQuery, CSS, and Bootstrap, I personally feel that I should learn as much Vanilla…


RemoteCertificateNameMismatch, RemoteCertificateChainErrors with HttpClient
Hello everyone and thanks for the help in advance. I am refactoring code that previously used WebClient (now deprecated) to HttpClient. The page connects with to a device using a self-signed certificate with an internal IP address for the Uri. …


Add-Migration CreateIdentitySchema
Having difficulty with the Add-Migration CreateIdentitySchema step in the tutorial. Any help would be appreciated: Tutorial:…


Add-Migration CreateIdentitySchema (2)
The tutorial below deals with authentication. One context is created when the project is first created at projectname.data.ApplicationDbContext; a second context is created later in the tutorial when scaffolding identity at…


System.InvalidOperationException: 'Invalid operation. The connection is closed.'
hello All, I am getting this error when calling a small function. I am calling this function twice. Below is my code: public async Task<EmployeeInfo?> GetEmployeeByEmployeeNumber(string employeeId) { List<int> emplyoeeInfoId =…


How to load data of employee if drop down list selected changed ?
I work on MVC web application using c# by ado.net I face issue I can't display employee data based on drop down selected index changed . so if user select Pending Request from drop down list it will select employee that have select employee status 1…


Inject IHttpClientFactory To Create HttpClient through a class
I'm trying to Use IHttpClientFactory To Create HttpClient (ref: https://www.rahulpnath.com/blog/are-you-using-httpclient-in-the-right-way/). At the end of the page, it says: "The Controller class can now use the WeatherService and call it to get…


Why I got 401 occasionally?
Hi All, I'm calling HTTPClient with dynamic token in a loop, but occasionally it thrown me 401 (Unauthorized). What did I do wrong in my test codes below? Is it correct to put the Authorization in there?, it looks like in some time it doesn't reset…
Verify User Login credentials via web service
Hello all: I am messing with a web site created with MVC and Individual Accounts for Authorization, so in my DB I have the table AspNetUsers, and in the code the Login method calls: var result = await…


cookie can not read after downgrade from 7.0 to 6.0?
I am using .net 7.0 and after I downgrade to .net 6.0 I can not use HttpContext.User it is not authenticated. in F12 Cookie I can see the Cookie I have set but I can not read it why?


Server Error in '/' Application Error.
Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…


ReportViewer 15.0.0.0 - Remove PageWidth and WholePage option from Zoom dropdown
We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. The Page width and Whole Page options in…


ReportViewer 15.0.0.0 vertical scroll on opening a sub record
We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. When we run the report from SSRS (SQL…


ReportViewer 15.0.0.0 shows scrollbar along the parameter and report body section
We have an MVC web application, and recently we migrated from Microsoft ReportViewer from 11.0.0.0 to 15.0.0.0 version. We started having different issues in terms of UI, one of which is mentioned as below. When we run the report from SSRS (SQL…

