奎蒂字符串绑定两个字段 [英] quety string bind two field

查看:83
本文介绍了奎蒂字符串绑定两个字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在网格视图中的一个查询字符串中绑定两个字段.

how to bind two field in one query string in grid view.

推荐答案



Hi,

Show your code other wise clear the questions?


如何使用Querystring传递两个变量,请参见下面的示例,名称和姓氏通过querystring传递.
Way to pass two variables using Querystring, see the following example, name and lastname pass through querystring.
"Webform2.aspx?Name=" + txtName.Text + "&LastName=" + txtLastName.Text);


现在您可以在gridview中使用相同的概念


now you can use same concept in gridview


尝试一下,

Try this,

<a href="default.aspx?Field1=Feild1Value&Field2=Feild2Value">Link</a>



在Vb.net中,



In Vb.net,

"default.aspx?Field1=" & Feild1Value & "Field2=" & Feild2Value 



谢谢.



Thanks..


这篇关于奎蒂字符串绑定两个字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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