如何读取 Url 中的哈希参数 [英] How to read Hash Parameters in Url

查看:33
本文介绍了如何读取 Url 中的哈希参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
如何从服务器端获取 Url Hash (#)

我在 url 中有哈希参数

I have hash parameters in url

任何人都可以帮助我如何使用 C# 从 Url 读取哈希参数值吗?

Can any body please help me to how to read Hash parameters value from Url using C#?

www.example.com/default.aspx#!type=1

如何读取type的值?

推荐答案

哈希部分仅在客户端上使用和可用.您无法从 ASP.NET/C# 中读取它.

The hash part is only used and available on the client. You cannot read it from ASP.NET / C#.

这篇关于如何读取 Url 中的哈希参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆