如何在.Net,C#中将Label值传递给HTML的属性 [英] How to pass Label value to property of HTML in .Net, C#
本文介绍了如何在.Net,C#中将Label值传递给HTML的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将Label(label.text)的值传递给ASPX页面中的控件属性(HTML)
我在Lable中有一些文本我想将此文本值传递给对象的属性。
这也不起作用:
proberty =<%#Label1.Text%>
请帮助我
How to Pass value of Label (label.text) to the property of a control in ASPX Page (HTML)
I have a some text in Lable i want to pass this text value to a property of a control.
this is also not working:
proberty="<%# Label1.Text %>
Please help me
推荐答案
尝试下面给出的链接:
如何访问服务器控件,例如aspx页面中的文本框值? [ ^ ]
Try the link given below:
How to access server controls for eg. Textbox values in aspx page? [^]
<asp:label id="lableU" runat="server" text="<%# Label1.Text %>" xmlns:asp="#unknown" />
OR
<asp:label id="lableU" runat="server" text="<%# Label1.Text %>" xmlns:asp="#unknown" />
可以帮助你。
May This Help You.
这篇关于如何在.Net,C#中将Label值传递给HTML的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文