🚀 News: We are launching the Kontext Labs Platform Pilot! Click here to join our pilot program.

asp.net

9 items tagged with "asp.net"

9 Articles

Articles

ASP.NET Core Find out Page Referer

Referer is usually sent as part of HTTP request headers. For instance, the Referer field in HTTP request header can look like the following: `` Referer: https://kontext.tech/ ` This code snippet provides example of retrieving referer information via HttpRequest.GetTypedHeaders` method in ASP.NET Core Razor pages. It also shows you how to get the relative path and query string only. The same code can also be used in web API controllers. Note: The referer can be NULL if user directly type the page URL in browser.

2022-08-31
Code Snippets & Tips

ASP.NET Core - Detect Browser and Device Type

2022-08-09
ASP.NET Core

Generate Absolute Path using LinkGenerator in ASP.NET Core

2022-03-28
ASP.NET Core

.NET - Transform XML Data with XSLT

2021-09-11
.NET Programming

ASP.NET Core - Implement Google One Tap Sign In

2021-05-18
ASP.NET Core

Draw Images in ASP.NET Core 5

2021-02-16
ASP.NET Core

Razor Pages: Dynamic Routing Parameter Name

2020-12-30
ASP.NET Core

Migrate from Universal Membership Provider to ASP.NET Identity 2.1.0 - PasswordHarsher

2015-02-01
ASP.NET

[ASP.NET]在虚拟目录中禁止web.config继承IIS根目录的web.config的配置

在我们的ASPNET虚拟目录应用中,有时会出现一些异常,比如在根目录的web.config中添加了HttpHandler以及HttpModule(如一些UrlRewiter重写组件、自己的全局HttpModule等)在虚拟目录运行时就会提示找不到找不到指定的文件的异常。解决方法是在根目录的web.config中针对根路径通过location配置这些module和handler等, 并且在location设置允许子目录重写,以及是否被子集应用程序继承设置为false,如下把<system.web> </system.web>包含在<location></location>结点内部:

2010-10-18
.NET Programming