如何使用SQL数据值作为动态链接按钮 [英] How to use sql data values as a dynamic link button

查看:75
本文介绍了如何使用SQL数据值作为动态链接按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在显示的sql数据上使用动态链接按钮
在页面上.

例如,
如果我在数据库中有列名称"MobileNo",则当我在网页上获得MobileNo的计数(例如5)时.我想单击该计数值(例如5),它应该导航到显示所有5个MobileNo的其他页面..

请任何人在这方面建议我....

问候,

Hi Everyone,

I want to use a dynamic link button over the sql data which gets displayed
on the page.

e.g.,
If I have column Name "MobileNo" in database, when I get the count(say 5) of MobileNo on the web page. I want to click that count value(say 5) and it should navigate to some other page showing all the 5 MobileNo''s..

Please anyone suggest me on this....

Regards,

推荐答案

里面有什么?

步骤:
1.从数据库获取手机号码
2.将其设置为超链接的文本
3.在超链接单击事件上,设置唯一的标识符,以将这5个数字标识为查询字符串或会话或表单变量-您可以根据应用进行选择
4.在新页面上,根据选择,单击数据库并获取这些记录.

试试吧!
What''s in it?

STEPS:
1. Get the mobile number count from DB
2. Set that as a text to hyperlink
3. On hyperlink click event, set the unique identfier that identifies those 5 numbers as a query string or session or form variables - your choice based on application
4. On new page, based on the selection, hit the DB and get those records.

Try!


这篇关于如何使用SQL数据值作为动态链接按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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