这个Href语法背后的概念? [英] Concept behind this Href syntax?

查看:56
本文介绍了这个Href语法背后的概念?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人向我解释使用

href标签的概念:

Please anyone explain me the concept of using
href tag like this:

<a href="product.aspx?page=products" title="Product"> Product </a>



我想知道这个符号是什么:?

表示这里.. 。


im want to know what this symbol:?
indicates here...

推荐答案

它表示网站地址:product.aspx与作为查询字符串传递给它的参数之间的分隔:page = products



更多i信息,请参见此处: http://en.wikipedia.org/wiki/Query_string [ ^ ]
It indicates the separation between the website address: "product.aspx" and the parameter that is being passed to it as a query string: "page=products"

For more information, see here: http://en.wikipedia.org/wiki/Query_string[^]


嗯,这是在两个网页之间传递一些值 s。

在您的情况下,您将 page = products 传递给 product.aspx 。因此,您可以使用 <在此页面上获取此值。 b> QueryString [ ^ ]。



像这样: string str = Request.QueryString [page];



您可以在此处找到有关传递值​​和QueryString的更多信息:

使用QueryString在页面之间传递变量 [ ^ ]



-KR
Well, it is a way to pass some values between two web pages.
In your case, you're passing page=products to product.aspx. Therefore you can get this value on this page using QueryString[^].

Like this : string str= Request.QueryString["page"];

You may find more information regarding passing values and QueryString over here :
Passing variables between pages using QueryString[^]

-KR


这篇关于这个Href语法背后的概念?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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