c# - 使用.net MVC中的路由将Url的第一个字母大写(Url Routing to UpperCase)
问题描述
我想从我的网址中将首字母大写
this is what I have:
http://www.example.com/test/testing-url
this is what I want:
http://www.example.com/Test/Testing-Url
是否可以在 .net MVC 路由中执行此操作,如果可以,我该如何实现?
我为此尝试的是我在 Application_BeginRequest 中使用了 Regex 表达式,global.asax
但它不起作用。
解决方案
推荐阅读
- docker - 如何在 docker-compose 文件中用 `depends_on` 替换 `links`?
- java - 无法解释的 NullPointerException
- ios - 如何使用 YouTube API 获取相关/上一个视频?(iOS)
- javascript - 匹配以 : 字符开头但不以 \ 开头的字符串:
- active-directory - LDAP 查询 memberOf 组,其中包含来自根域的用户
- asp.net-mvc - 当 DropDownList 从模型更改时填充 TextBoxFor 值
- c# - 干净的架构——如何在 MVC 中实现 Presenter
- google-apps-script - 将时间戳脚本扩展到多列,并且仅在单元格之前为空时更新
- javascript - 计算属性查找似乎改变了一个类/子类型
- prolog - 将列表列表合并为单个列表