Html.Raw is not working in razor view page
Hi,Html.Raw is not working in razor view page. I couldn't add quotes example: class="dropdown-submenu"I have this page "Views/Shared/Components/Default.cshtml" for navbarmenuI tried this...
View ArticleHow to make anonymous type linq query custom model binding
Hi. I want bind my cutom model (DenetlenenViewModel) but "Yil" property is List. How to bind model linq query?My Custom Modelpublic class DenetlenenViewModel { public int Id { get; set; } public string...
View ArticleHow to secure a Asp.Net 2.0 Core Web Api using Azure AD B2C that will be...
Hi Guys:I need to enable authorization in a web api build on ASP.NET Core 2.0 hosted on azure app serviceagainst Azure AD B2C.I am confuse because I dont know where is the correct location to enable...
View ArticleMVC 5 or ASP.NET Core 2 MVC?
Hi,I come from an ASP.NET Webforms background due to my job requirements. Recently the company I work for migrated all its webapplications to AWS and I decided is time to upgrade to a newer technology,...
View ArticleHow to pass variable into layout
Hi,I want to use variable into layout. I have a model and table in database that is below. how to pass variable into layout in logic ? public class WebSiteSetting { public int WebSiteSettingId { get;...
View ArticleError with ASP.NET Core + Docker on Mac OS
Hey everyone,In a nutshell, I have a Docker app containing three micro-services (one for connecting to SQL Server DB, another to PostgreSQL and another is just a Web API that serves a MVC app)....
View ArticleGettig file size from given url
Hello.I need to know size of file from a given url.In fact I want to get url of a file(anywhere on the internet) and then get size of it.I tried with this code but I takes long time to get size of...
View ArticleHow to get JavaScript Data from Razor View into ASP.Net Core 2 Model?
How can i get my JavaScript Data like strings from my Razor Page View into the corresponding Model inside my ASP.Net Core 2 Application?What's the state-of-the-art, fastest and easiest way to do this?...
View ArticleHow to bind dynamic form data in Razor Pages (.net core 2)
How can i bind dynamic created form data of my view to my underlying model?As a small example here my Model/Controller:using System; using System.Collections.Generic; using System.Linq; using...
View ArticleMany-To-Many Relationship in DotNet Core 2
Hello.I was searching for many to many relationship in EF Core 2 and i find this microsoft doc page :https://docs.microsoft.com/en-us/ef/core/modeling/relationshipsbut When i am trying to run dotnet ef...
View ArticleWrite Cookies in ASP.NET Core 1.0
One of the basic requirements in several web applications is storing and retrieving small pieces of information in cookies. This article will discuss with an instance how ASP.NET Core 1.0 deals with...
View ArticleCRUD For Many-To-Many Relationship in EF Core
Hello again.I had a problem with configuring many-to-many that it solved, thanks to @Edward Z.Now i want to use it for CRUD operations.How can i add related data, How can i get related data, how can i...
View ArticleTransactions in ADO.Net
Hello can any body please explain Transactions in ADO.Net?How it works and what's the actual scenario ?
View ArticleHow to work on user permission .net core mvc
I am working on HR employee module and i am stuck in user permission authoraziation and dont know how its gonna done. I have attached image for example. If someone help to build something like that for...
View ArticleNested AppSettings.jsons with ASP.NET Core
Nested AppSettings.jsons with ASP.NET Core My company is exploring ASP.NET Core. We currently use ASP.NET Web API 2 & MVC 5.2.2. We deploy our applications under IIS using the following...
View ArticleIIS certificate private key
I'm trying to load the private key from a certificate stored in the userstore. The user under which the Application Pool is running is not an administrator. It seems the user's profile is not...
View ArticleTrying to include seconds in time dataformatstring fails
I have built a .Net Core 2.0 application that stores and displays various time values among other data types, but I have not been able to format the values to accept seconds. Here is my current...
View ArticleWill not grab my Newpassword - does not match any available view
That's when, for example, I'm getting a user on the page. and sends a kind of welcome email to person. then it tells me:ArgumentNullException: Value cannot be null. Parameter name: Email/NewPassword...
View ArticleDeploying views
I have just started working with core 2.It appears that views are precompiled now, so when you deploy you are not actually moving a view folder and cshtml file now?I don't mind, though sometimes it is...
View ArticleHow to call a method
I have an interface: void InsertPersonActivityLog(PersonActivityLog dateTime, PersonActivityLog typeDefinition, PersonActivityLog details, Person edi, Person firstName, Person middleInitial, Person...
View Article