在Repeater控件与查询字符串发送字符串在ASP.net [英] Send string with QueryString in Repeater Control in ASP.net

查看:161
本文介绍了在Repeater控件与查询字符串发送字符串在ASP.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的显示在我的网站数据Repeater控件。我使用Repeater控件中的超链接用于显示数据库中的表我的一个领域。

当你点击,我想该链接转到另一个页面,并发送一个字符串到[页码]有一个查询字符串。我不知道我该怎么办? - 你能解释如何做到这一点。

我在ASP.net使用LINQ。


解决方案

 < ASP:超链接ID =HyperLink3NavigateUrl ='<%#的eval(ID_Message, ?〜/ ADMIN / Reply.aspx ID = {0})%>' =服务器>确定< / ASP:超链接>

I use a Repeater Control for showing the data in my WebSite. I use a HyperLink in the Repeater Control for showing one field of my table in the database.

When you click, I want that link go to another page and send a string to that [page] with a QueryString. I don't know how I do that - can you explain how to do it?

I am using Linq in ASP.net.

解决方案

<asp:HyperLink ID="HyperLink3" NavigateUrl='<%#Eval("ID_Message","~/ADMIN/Reply.aspx?ID={0}") %>' runat="server">OK</asp:HyperLink>

这篇关于在Repeater控件与查询字符串发送字符串在ASP.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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