Dynamic Folder Names with AjaxFileUpload
I'm attempting to replace the upload /download pages of our very old ASP classic web site with a web forms app. Keeping as much of the back end stuff the same is important as there is code (mostly VBA in Word, Excel and Outlook) in our daily operation…
How can I have an interactive map in ASP.NET?
Hi all. I have an ASP.NET project that needs to display a map image. The map contains areas that show a status of either "busy" or "available". I need the map to show this status with an icon, a small image that represents either of…
*I cannot call an aspx file from within an MVC5 web app controller method
Hi, I have two MVC5 webapp projects. Proja references projb. When proja instantiates a new projb object called projbObj. I call a method from projbObj called DisplayLoggingMaint(). But when I debug this, the debug stops at the call…
403 Forbidden - Links in ASP.NET code behind
I am building my website in ASP.NET Web Forms with User Accounts. I have just the example template that comes with the ASP.NET webforms and I'm going through trying to connect all the 2FA ans SendGrid peripherals. I would really like to read the…
About MVC support please
<div class="row" id="education-seminar-forms-BilgisayarBilgi"> @for (int i = 0; i < Model.tBL_BilgisayarBilgisis.Count; i++) …
Microsoft.AspNet.OData NuGet Package Upgrade Causing delay in the Functionality
Hi, I have upgraded Microsoft.AspNet.OData NuGet Package in our application from 7.5.14 to 7.7.5 and since then it is causing delay in few of the Api calls in the application. Before upgrade everything works fine without causing any delay. The scenario…
ASP.NET Core JWT Authentication Returning Unauthorized(invalid-token 401) for Authenticated Requests in Controller Actions
Hi everyone, I'm encountering an issue with JWT authentication in my ASP.NET Core 8.0 application. While the token generation and authentication seem to work correctly in my AuthenticationController, any requests to other controllers requiring…
Azure app service reverts to previous version
I have blazor web app I'm deploying to Azure App service using VS2022 Preview publish feature. I have upgrade my project target framework to .NET 8. And I have my publish setting target framework to .NET 8. However after publishing the app the…
DataTable values are getting the default values(Initially loaded values) when we click on the dropdown icon of DataTable in asp.net C# using jQuery
I'm very new to this DataTable logic implementation concept and I have append the data to the DataTable and append successfully and in that DataTable controls I have written some event logic (ex:- dropdown onchange and textbox oninput events) and those…
anti-forgery tokens implementation in asp.net web api
Can any one help me with anti-forgery tokens implementation in asp.net web api and AngularJS. how do we maintain the forgery key in web api to validate the key for every request. Please provide the full example.
How to invalidate ".AspNet.Cookies" cookie on logout?
I have a .net application deployed to Azure. A penetration test finding called "Session Not Invalidated After Logout" is found. When an API Get request is sent along with .AspNet.Cookies while user is logged in, a successful response is…
how to pass C# DataTable to JQuery DataTable
I am trying to send data from a C# DataTable to a Jquery DataTable, but I am not sure how. Here's my code, but it is not working. public ActionResult StudentList() { TestViewModel tvm = new TestViewModel(); List<Student> students =…
MVC excel to pdf
public ActionResult Excel2(int? id) { List<TBL_Table1> FileData = db.TBL_Table1.Where(x => x.Tableid == id).ToList(); string DosyaAdi = ""; try { ExcelPackage.LicenseContext =…
validate item in entire gridview to check excess Quantity
Hello This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="yyy.aspx.cs" Inherits="yyy" %> <html> <head runat="server"> <title>Untitled…
get user ip address not deployment system ip address
Hello I want to get and show in Label1 user system name and ip address not deployment machine ip address how to get that i tried this but its taking depoyment ip address i want user machine ip string hostName = Dns.GetHostName(); …
SSO OAuth with Username And Password
I have a Web Application whose Admin portal developed in Asp.net Webforms with some domain and the Public portal of the same is in Asp.NET 8 (.NET CORE) with some other domain. The database is same for both and currently I do login with Username and…
Mysterious Error log from IdentityClient when using DefaultAzureCredential
2024-02-27 23:08:54.995 ERROR 54214 --- [ main] c.a.i.implementation.IdentityClient : Could not invoke the MSAL Broker. Ensure that the azure-identity-broker library is on the classpath. java.lang.IllegalStateException: Could not invoke…
adding model based controller gives me an error in MVC 5
I am trying to add model based controller, according to a tutorial: https://learn.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/accessing-your-models-data-from-a-controller I tried reinstalling Visual studio, tried deleting…