使用数据转发器,使用SQL语句VB2010 [英] Using Data Repeater, using SQL statements VB2010

查看:76
本文介绍了使用数据转发器,使用SQL语句VB2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用了一个数据转发器,并将其与数据源链接.该程序列出了数据库中所有客户端的名称,ID号和URL.

我的第一个问题是如何使显示为链接标签的URL,单击时链接到默认浏览器.我通常使用Shell(c:/program files/internetexplorer/iexplore.exe"URL HERE")命令,但是我不确定如何使它与数据转发器一起使用?

我的第二个问题与启动服务有关,我需要从当前数据转发器记录中获取ID号,然后将其放在服务名称中,例如,如果服务被调用,Client _ **两个**代表客户端ID .然后,在数据转发器上的当前记录上单击按钮时,这需要启动服务.

我的第三个也是最后一个问题是如何查询数据转发器的当前记录中的字段,例如,如果我想查询显示的当前记录的名为ID的字段,我是否需要使用一个函数来调用信息?

感谢您提供的所有指针,我是VB 6人员,以前从未使用过数据转发器.

Paul,谢谢.

Hi All,

I have used a data repeater and linked it with the data source. The program lists all the names of clients from the database with an ID number and also a URL.

My first question is how can i make the url that is displayed as a link label, link to the default browser when clicked. I normally use the Shell(c:/program files/internet explorer/iexplore.exe "URL HERE") command but i''m not sure how to make this work with the data repeater?

My second question is to do with starting services, i need to take the ID number from the current data repeater record and then place it within a service name, for example if the service was callled Client_** the two ** represent the client ID. This then needs to start the service when button is clicked on the current record on the data repeater.

My third and final question is how to query a field in a current record of a data repeater, for example if i wanted to query a field called ID for that current record shown, is there a function i need to use to call the information?

Thanks for any pointers, i''m a VB 6 man and have never used the data repeater before.

Thanks, Paul.

推荐答案

对于第一个问题,如果这是WinForms应用程序,则可以使用
For your first question, and if this is a WinForms App, you could use the LinkLabel[^] Control.


这篇关于使用数据转发器,使用SQL语句VB2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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