c# - 您如何使用具有 abc%5Bxyz%5D 的查询字符串数据?
问题描述
使用查询字符串http://www.contoso.com/student?id=12345更容易使用数据
但是你如何在控制器上使用 abc%5Bname%5D 的数据呢? http://www.contoso.com/student?abc%5Bname%5D=john
解决方案
var url = "http://www.example.com/student?abc%5Bname%5D=john";
url = HttpUtlity.UrlDecode(url);
推荐阅读
- python - 如何将列表中的元素与字符和整数相乘?
- git - 你能*真的*在 Git 中更改作者吗
- javascript - 为什么在 for of 循环中调用对象的属性不起作用?
- python - 如何从 ManyToMany 字段中提供创建新相关模型实例的选项以及 Django 表单中提供的现有选项?
- random - 这是来自 [NIST SP800-22 Revision 1a.] 的 2.5.8 示例中的印刷错误吗?
- apache-spark - withcolumn 内的数据框选择表达式
- python - 将更改分别保存到两个不同字段的用户日志中
- java - IntelliJ 使用错误的 JDK - 任务“:compileJava”执行失败。> 无效的源版本:11
- sql-server - SAS PROC SQL Innerjoin 不返回任何列
- express - Express to express - httpOnly cookie如何转发?