链接到gridview内容. [英] links to the gridview content..
本文介绍了链接到gridview内容.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好..
我有gridview的一列文本内容.我想使用该文本作为按钮,例如通过单击该列单元格内容将其重定向到另一页..
hii every one..
I have gridview with a column of text content. I want to use that text as button like by clicking that column cell content it should redirect to another page..
推荐答案
^ ]
http://forums.asp.net/t/1607394.aspx/1 [ ^ ]
http://stackoverflow.com/questions/6295767/getting-selected-row-of-aspgridview-when-click-on-link-button-to-get-hidden-id-v[^]
http://forums.asp.net/t/1607394.aspx/1[^]
您好,
请参阅以下链接.这可能对您有帮助.
http://www.mandsconsulting.com/asp-net-hyperlink-in-gridview中使用-hyperlinkfield-sqldatasource-boundfield-templatefield-and-hyperlink [ http://csharpdotnetfreak.blogspot.com/2009/09/pass- send-gridview-row-data-otherpage.html [ ^ ]
谢谢,
Viprat
Hello,
See the below links. It might be helpful to you.
http://www.mandsconsulting.com/asp-net-hyperlink-in-gridview-using-hyperlinkfield-sqldatasource-boundfield-templatefield-and-hyperlink[^]
http://csharpdotnetfreak.blogspot.com/2009/09/pass-send-gridview-row-data-otherpage.html[^]
Thanks,
Viprat
您可以使用linkbutton显示文本内容,而该link按钮可以使用查询字符串在另一页中显示完整信息.
受保护的void LinkButton_Click(Object sender,CommandEventArgs e)
{
如果(e.CommandArgument!= null)
{
Response.Redirect("YourPage.aspx?IdPassed =" + e.CommandArgument.ToString());
}
}
You can use linkbutton to dispaly the text content and this link button you can use query string to display complete information in another page.
protected void LinkButton_Click(Object sender, CommandEventArgs e)
{
if (e.CommandArgument != null)
{
Response.Redirect("YourPage.aspx?IdPassed=" + e.CommandArgument.ToString());
}
}
这篇关于链接到gridview内容.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文