如何使用超链接字段传递查询字符串 [英] How to pass querystring with hyperlink field
本文介绍了如何使用超链接字段传递查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的页面上有一个标签,我有一个值。当用户点击我希望将标签的值传递给另一个页面的超链接时,我也有一个超链接。请给我答案,我没有多少时间完成这项任务。
提前致谢
解决方案
试试这个,
< asp:hypherlink id =h1runat =servertext =CustomersDetailsxmlns:asp =#unknown>
。在.cs页面
string id = 14;
string companyname =umapathi;
hl.NavigateUrl =〜/ CustomerDetails.aspx?customerid =+ id.ToString()+& companyname =+ companyname.ToString();
< blockquote>< asp:HyperLink ID =addDevelopmentPlanrunat =serverNavigateUrl =〜/ manager / uploadTrainingPlan.aspx?id =<%RequestQueryString [id]%
> link
I have one label on my page on which I have a value. I also have a hyperlink when the user clicks on the hyperlink I want to pass the value of the label to another page. please provide me answer, I have very less time to complete this task.
Thanks in advance
解决方案
Try This,
<asp:hypherlink id="h1" runat="server" text="CustomersDetails" xmlns:asp="#unknown">
in .cs page
string id=14;
string companyname ="umapathi";
hl.NavigateUrl = "~/CustomerDetails.aspx?customerid=" + id.ToString() + "&companyname=" + companyname.ToString();
<asp:HyperLink ID="addDevelopmentPlan" runat="server" NavigateUrl="~/manager/uploadTrainingPlan.aspx?id=<% RequestQueryString["id"]"%>link
这篇关于如何使用超链接字段传递查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文