如何查找gridview iteam模板中的HTML图像控件。 [英] How to find HTML image control which is in gridview iteam template.
问题描述
我想找到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屋!