如何查找gridview iteam模板中的HTML图像控件。 [英] How to find HTML image control which is in gridview iteam template.

查看:100
本文介绍了如何查找gridview iteam模板中的HTML图像控件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到gridview iteam模板中的html图像控件。我正在使用以下代码:

HtmlImage img =(HtmlImage)GridViewUserScraps1.Rows [index] .FindControl(imagename);



但它返回null值。我想要html图像控制源。



plz help



我尝试过:



我想找到在gridview iteam模板中的html图像控件。我正在使用以下代码:

HtmlImage img =(HtmlImage)GridViewUserScraps1.Rows [index] .FindControl(imagename);



但它返回null值。我想要html图像控件的来源。



plz help

解决方案

请看下面这些链接帮助:



在asp.net中的gridview rowcommand事件中找到html控件? [ ^ ]



c# - 获取GridView的TemplateField内的Html输入值 - Stack Overflow [ ^ ]

I am tring to find html image control which is in gridview iteam template. I am using following code for this:
HtmlImage img=(HtmlImage)GridViewUserScraps1.Rows[index].FindControl("imagename");

but it returns null value. I want source of html image control.

plz help

What I have tried:

I am tring to find html image control which is in gridview iteam template. I am using following code for this:
HtmlImage img=(HtmlImage)GridViewUserScraps1.Rows[index].FindControl("imagename");

but it returns null value. I want source of html image control.

plz help

解决方案

Please see these links below for your help:

find html control in gridview rowcommand event in asp.net?[^]

c# - Get Value of Html Input Inside TemplateField of GridView - Stack Overflow[^]


这篇关于如何查找gridview iteam模板中的HTML图像控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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