Model value in Razor page is always null
I have the following code on my cshtml page: @if (Model!=null && Model.EmergencyInfos!=null && Model.EmergencyInfos.ToList().Count>0) { var count = Model.EmergencyInfos.Count; @for…
System.Net.Http.UnsupportedMediaTypeException: 'No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html'.'
I am getting Unsupported Media Type Exception whenever I am doing a get request on MVC side on [http://localhost:52541/Employee/Index] . Please check my code and help me to solve the issue EmployeeController.cs from MVC using System; using…
Javascript debugger for ASP.net web forms project noy working
Hello I am working in Visual studio 2019 web forms VB.net ASP.net and I am using javascript. I have put the breakpoints but the execution is erratic. The breakpoints at the start of the javascript procedure are not working. the alert messages are…
Language code Resource file "es-XL" Spanish Latin America not created dll Visual studio2019 MVC C#
We have support for multiple languages in our application using resource files with the below language code. English - en-Us ,German - de-DE , Spanish(Latin America) -ex-XL ,French - fr-fR While using visual studio 2012 Professional when building…
ReportViewer stuck at Loading... when clicking drill up/down in Edge
Drilling up/down in an embedded Report Viewer in our webapp is stuck at a "Loading..." panel when done in Edge browser, but works fine in Chrome. The viewer also renders flawlessly, regardless of browser opened in, when viewed using the SSRS…
How to get authorization code dynamically depending on tenant ID using blazer Webassembly
I am looking to dynamically create a Microsoft graph client at runtime where the tenant ID is changed dynamically every time it is created. I need to get a authorization code that is dependent on the tenant ID at runtime but I can not seem to make it…
How to make login details after login success with form below
I work on razor page on asp.net core 7 I need to make form or box with details of users success as below but I don't know what is name of box have user details I pass data after login success by following…
using controls created in c# page forward an aspx page webform
sirs, my problem is about the creation of controls in c# page using forward an aspx page as dynamically controls. the textbox and button controls created had sent to the aspx page and the showing is ok. but the problem is that when i want to used these…
how can we send key based encrypted parameter in an api request in the header instead of sending directly
[AllowAnonymous] [HttpGet] [Route("api/HelpVideo/{ID}")] [ResponseType(typeof(HttpResponseMessage))] public HttpResponseMessage GetHelpVideo(int ID) { try { …
LINQ query with and and OR search criteria based on GUI
I have the following search boxes on my web page: This is my LINQ query: var transaction = (from sst in _Context.Transactions join sstcnt in ( from ssti in _Context.TransactionItems …
Asp.NET Gridview shows only odd rows
Hi all, I have a problem populating a Gridview with a Datatable. I have a DataTable with 21 rows. I select it as Gridview DataSource a call the DataBinb() method. The property GridView.Rows.Count give me 21 as result. But, when I look at the browser, I…
Problems with VS 2015 project
Hello, I have an asp.net 4.5 project with visual basic 2015, in this project a group of 3 programmers work, we use the TFS with source code control, at the beginning I could load the project, debug without problems, for some time both processes take…
Column Type For Database-Retrieved Column : Windows Forms DataGridView Control
Hi. My issue is that related to the 3-tier Application development using ASP.NET (.NET Framework). As an IT student, I have been tasked to code for CRUD function using 3-tier. For the Update functionality, I am facing an issue where for the row ' string…
Taking too much time to Load all files from the folder in ASP.NET Web page.
I am loading the files from the server folder in a web page. But, the head ache is, it's taking too much time to load all the files from the specific folder. Hardly it will be taking 30 to 45 mins to load all the files. End user can't wait till load all…
Would it be possible to add this to ASP.NET?
Hi, I use a .NET application at work that allows to do the following in sequence, select a group of files via a file picker with a small preview pane. https://www.dropbox.com/s/w5aq6t8yeffvcfp/Screenshot%202023-06-05%20081505.png?dl=0 Once…
How to Open outlook at client end in asp.net mvc
How to Open outlook at client end in asp.net mvc My code is below but its not working after publishing try { List<string> lstAllRecipients = new List<string>(); //Admin email id …
Possible Handle Leak on Azure App Service App
We have an ASP.NET 4.8 application hosted in Azure App Service. At times we see a spike in latency in usually a single instance which also shows spikes in CPU time, TCP connections, Thread Count and Handle count. The average thread count and and average…
Track child application from Parent application using iframe and GA4 property
HI all I have two web applications: a parent application and a kid application. Using an iframe, the child application is loaded inside the parent application. My requirement here is to track a child application. How is that possible? How can we make use…
How to fix embedded code blocks showing as plaintext
I am having trouble creating an ASP.NET Web Form because when I visit my website in Chrome, the entire website's code just shows up as plaintext, and in IE it is not much better. I think this is caused by the embedded code block (<% %>) at the top…
Local IIS without local admin privileges
Is it possible to run local IIS (on the developer's machine) without being a local admin? when the latest security measures were applied we all lost local admin privileges.