进入标签时使用查询字符串的问题 [英] Problem using querystring when geting in label

查看:84
本文介绍了进入标签时使用查询字符串的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在使用querystring进行标签时遇到问题,这是我的代码:

hello all

i am getting problem using querystring when i getting it to label here is my code:

<asp:Label ID="Lblcategory" runat="server" Text=''<%=Request.QueryString["ctgname"]%>''></asp:Label>



并显示为



and it displayed as

Select Parent Business Category:
<%=Request.QueryString["ctgname"]%>



请帮助我解决这个问题



please help me on this

推荐答案

使用这种方式

Use this way

<asp:Label ID="Lblcategory" runat="server" ><%=Request.QueryString["ctgname"]%></asp:Label>




请按以下方式更改您的代码.

尚未将请求的值分配给Text属性,请尝试在标签中进行如下提及.

Hi,

Please change your code as follows.

Instaed of assigning requested value to Text property,try to mention with in the label as follows.

<asp:label id="Lblcategory" runat="server" xmlns:asp="#unknown"><![CDATA[<%=Request.QueryString["ctgname"]]]%><asp:label>



我认为这会对您有所帮助.

问候,
基兰.



I think this will help you.

Regards,
Kiran.


这篇关于进入标签时使用查询字符串的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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