How to pass an object from the controller and use it on a view in ASP.Net Core

I want to know how to pass an object from my controller to my view for example, in my controller I declare an instance of a report object: XtraReport report = new XtraReport () And I want to bind that report instance to a document viewer like @Html.DevExpress().WebDocumentViewer(“WebDocumentViewer”).Height(“1000px”).Bind(report). How do I go about this in…

How to pass an object from the controller and use it on a view in ASP.Net Core

I want to know how to pass an object from my controller to my view for example, in my controller I declare an instance of a report object: XtraReport report = new XtraReport () And I want to bind that report instance to a document viewer like @Html.DevExpress().WebDocumentViewer(“WebDocumentViewer”).Height(“1000px”).Bind(report). How do I go about this in…

Single Sign On Authentication in Asp.net MVC Web Application using Database or Active Directory

I’m working on a Web Application which requires high level of security, user authentication and user information. My question is should I use Active Directory for authentication or Should I use SQL Server (which is the database for my application).What are difference between Active Directory and Database? What are pros and cons of AD vs…

ASP.NET session has expired or could not be found while setting cookie flag(OWASP)

I have an Asp.Net application and I have run a security check in my application using OWASP They suggested that COOKIE FLAG PATH NOT SET Link I added my cookie path in Global.asax under session_start like Response.Cookies[“ASP.NET_SessionId”].Path = “/MyApp”; Now the Path is setting fine but SSRS report in my application is not loading and…