在鼠标悬停在gridview单元格中显示图像工具提示 [英] Show Image Tool tip in gridview Cell on Mouse Over

查看:86
本文介绍了在鼠标悬停在gridview单元格中显示图像工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我正在使用asp.net C#和sqlserver2005.

我在DB中有一个产品表,该产品表显示在gridview中.

因此,在该gridview中,我有一列名称为产品代码的名称.

我没有.数据库中显示在gridview中的产品代码的形式,

产品代码
============
sony1xcy897 ----在鼠标悬停时显示带有IMAGE的工具提示
Hcam0087gh
LtopDellN5010
Ltop东芝
平板电脑三星9k

我也有针对该特定代码的图像.


请给我建议,如何在asp.net Gridview单元格中的鼠标上方使用工具提示IMAGE.

谢谢,

Dear Frnds,

Am working on asp.net C#, sqlserver 2005.

I have a product table in DB, which is displayed in gridview.

So, in that gridview i have a column with name product code.

I have no. of product codes displaying in gridview from Database as

Product Codes
=============
sony1xcy897 ----Show tool tip with IMAGE on mouse over
Hcam0087gh
LtopDellN5010
LtopToshiba
tabletsamsung9k

and also i have images for that particular code.


Please suggest me , how to use tool tip IMAGE on mouse Over in asp.net Gridview Cell.

Thanks,

推荐答案

使用产品代码绑定图像的工具提示属性
Bind tool tip property of image with product code


您也可以这样做,

您对不同的prod_code有不同的图像,
因此,您必须从数据库中检索图像路径,然后将工具提示属性与image_prodCode绑定,如下所示

上绑定工具提示
You can also do that,

you have different images for different prod_code right,
so you have to retrieve image path from DB and then bind tooltip property with image_prodCode as per given below
Bind tooltip at
grdvw_rowdatabound()
{
----
lblprodcutcode.ToolTip = "productcode" +prodCode +imagepath + "";
----
}



希望这会对您有所帮助,



Hope this will help you,


<pre lang="Javascript"><pre lang="java"><pre lang="java">


这篇关于在鼠标悬停在gridview单元格中显示图像工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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