by DXSdata | Mar 14, 2017 | Administration, ASP.Net
Scenario You try to publish your ASP.NET Core site to another Windows server running IIS. Error messages: Event 1000 / IIS AspNetCore Module: Application ‘MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE’ with physical root ‘C:\inetpub\wwwroot\’ failed...
by DXSdata | Mar 8, 2017 | ASP.Net
Using Microsoft.AspNetCore.Identity, you might miss a method like GetUserId() which was available for previous .NET frameworks by default. As a workaround, use this extension method: C# using System.Security.Claims; namespace myproject.Common { public static class...
by DXSdata | Feb 11, 2017 | ASP.Net
ASP.NET offers a good way to keep your code clean of redundant data, e.g. Bootstrap classes you would have to assign to every visible HTML element again and again. As a .NET Core MVC sample for single elements, you would write code like ASP @Html.TextBoxFor(m =>...
by DXSdata | Jul 12, 2016 | ASP.Net, C# .Net
By default, @Html.DropDownListFor() is a convenient Razor helper to create a <select> tag containing <option> tags. But it is not possible to add custom attributes like “data-meow-xx=xxxx” to the option tags. One solution is to create the...
by DXSdata | Jul 12, 2016 | ASP.Net, C# .Net, MySQL
Databases like MySQL do not allow any special characters in table column names, so most developers use camelcase or underscores. To make it readable for the end user in your software, you often have to manually type a friendly description. As there is no way to set a...
by DXSdata | Jun 13, 2016 | ASP.Net, C# .Net
Scenario In your SQL database table, you have e.g. a foreign key relation – a nullable column of one table references another table which contains the items for your DropDownList (HTML Select). But by default, Html.DropDownListFor() does not have an option for...
Comments