本文介绍了隐藏字段数据-绑定HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我希望我的问题很容易回答...
我有两个隐藏的字段,我想用它们的值构建一个URL.到目前为止,我已经有了它,但是它不起作用.
Hi guys,
My question I hope is an easy one to answer...
I have two hidden fields which I want to build a URL with their values. I have this so far but it does not work.
<asp:Image ID="Image" runat="server" ImageUrl="~/ShowImage.ashx?id='<%=hdID.Value%>'&name='<%=hdName.Value%>'" Width= "300" ImageAlign="Left"/>
有人可以帮我吗?
问候,
Caz
Could anyone please give me a hand?
Regards,
Caz
推荐答案
protected void Page_Load(object sender, EventArgs e)
{
Image.ImageUrl = hdID.Value;
}
<asp:image id="Image" runat="server" imageurl="~/ShowImage.ashx?id='<%=hdID.Value%>'&name='<%#hdName.Value%>'" width="300" imagealign="Left"></asp:image>
这篇关于隐藏字段数据-绑定HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!