E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
FindControl
GridView内按钮Click之后取值
{if(e.Row.
FindControl
("Button1")!=null)...{Buttonbtn=(Button)e.Ro
lovnet
·
2008-02-27 11:00
GridView
Page.
FindControl
方法找不到指定控件的原因
在ASP.NET2.0中,引入了MasterPage的机制,在当前页使用MasterPage的情况下,放在ContentPlaceholder1这样的内容页的控件无法用Page.
FindControl
来查找
shanyou
·
2008-02-17 21:00
Page.
FindControl
方法找不到指定控件的原因
在ASP.NET2.0中,引入了MasterPage的机制,在当前页使用MasterPage的情况下,放在ContentPlaceholder1这样的内容页的控件无法用Page.
FindControl
来查找
张善友
·
2008-02-17 21:00
职场
休闲
指定控件
给GridView添加行单击事件
protectedvoidGridView1_RowDataBound(objectsender,GridViewRowEventArgse) { ButtonbtnHiddenPostButton=e.Row.
FindControl
lpy123456
·
2007-12-26 15:00
JavaScript
object
String
command
null
button
使用逗号分隔含有ID的输入参数(sql 查询)
For Each row As GridViewRow In gvManagerList.Rows Dim cb As CheckBox = row.
FindControl
(
only_endure
·
2007-12-18 13:00
sql
server
function
asp
button
dataset
C#如何遍历动态生成的textbox控件的值
如果遇到容器,比如panel 则需要递归遍历 private void
findcontrol
(Control ctl){ foreach(Control c in ctl.Controls
hanghwp
·
2007-11-29 11:00
c
C#
null
textbox
获得引起postback的控件
= string.Empty)...{ return this.Page.
FindControl
(ctrlname);} 关键字:_EVENTTARGET....>以上的代码,是搜索引发页面回
only_endure
·
2007-11-22 00:00
String
null
存储
input
button
PostBack
ASP.NET基础教程-DataGrid表格控件-模板列的使用
一、给表格添加一个模板列,在查板列中添加一个文本框,文本框名字为"txt“1、对文本框进行赋值:((TextBox)DataGrid.Items[0].Cells[0].
FindControl
("txt
晨星
·
2007-10-10 08:13
职场
休闲
DataGrid表格控件
ASP.NET基础教程
模板列的使用
DataList 中动态绑定服务器子控件的代码
3、绑定dbList完成以后,循环dbList,使用
FindControl
方法找到那个控件,然后将一个SomeMethod(DataKeyField)方法返回一个DataReader给子控件。
·
2007-09-10 21:04
FindControl
()
publicvoidUpdateButton_Click(Objectsender,EventArgse) { boolboolfalse=false; //Setifthecartcontainsitems CartshoppingCart=ShoppingCart(false); if(!shoppingCart.IsEmpty) { if(!P
shanliwa
·
2007-08-31 15:00
FindControl
()
public void UpdateButton_Click(Object sender, EventArgs e) { bool boolfalse = false; //Set if the cart contains items Cart shoppingCart = ShoppingCart(false); if (!shoppingCart.IsEmpty) { if (
wapysun
·
2007-08-31 15:00
find
嵌套母版页中的控件访问
如果一个内容页对应一个没有嵌套的母版页,访问这个母版页上的控件众所周知:类似(Button)Page.Master.
FindControl
("Button1") 可是这个母版页如果又嵌套在另一个母版页里面
xiaoer_1982
·
2007-08-09 16:00
asp
嵌套母版页中的控件访问
如果一个内容页对应一个没有嵌套的母版页,访问这个母版页上的控件众所周知:类似(Button)Page.Master.
FindControl
("Button1") 可是这个母版页如果又嵌套在另一个母版页里面
izuoyan
·
2007-08-09 16:00
asp
嵌套母版页中的控件访问
如果一个内容页对应一个没有嵌套的母版页,访问这个母版页上的控件众所周知:类似(Button)Page.Master.
FindControl
("Button1") 可是这个母版页如果又嵌套在另一个母版页里面
totoxian
·
2007-08-09 16:00
asp
Datalist删除一条记录的解决方法
datalist不同gridView用
Findcontrol
方法行不通。
ycyangcai
·
2007-08-01 22:00
sql
object
delete
button
FindControl
在各种场合的应用
dlComment_ItemDataBound(object sender, DataListItemEventArgs e) { Label label = ((Label)e.Item.
FindControl
ycyangcai
·
2007-08-01 19:00
vb.net中遍历checkbox 权限列表
For Each dgi As DataGridItem In Datagrid1.Items If (CType(dgi.
FindControl
("cbcb"), CheckBox
wangdetian168
·
2007-07-06 16:00
.net
asp.net
asp
vb
VB.NET
ASP.NET-3
只读绑定列stringusername=((TextBox)e.Item.Cells[2].Controls[0]).Text;//绑定列stringusername=((TextBox)e.Item.
FindControl
lionel1982
·
2007-06-03 15:00
datagrid
String
textbox
获取GridView中指定的控件
Image1为GrideView1中的一个复合控件获取它然后删除Link触发Imageim=(Image)(GridView1.Rows[e.RowIndex].
FindControl
("Image1"
桂圆
·
2007-05-30 20:00
WinForm中使用反射将业务对象绑定到窗体或控件容器
Winform没有提供类似WebForm中的
FindControl
方法,我于是用遍历控件的方式,写了一个类似WebForm中的这个方法,考虑到Winform中的很多控件放在Label、TabControl
lovnet
·
2007-05-26 11:00
windows
asp.net
webform
asp
WinForm
ASP.net 用CSS 来隐藏 GridView 的列
{ if(e.Row.RowType==DataControlRowType.DataRow) { ((TextBox)e.Row.Cells[0].
FindControl
wl076
·
2007-05-07 12:00
JavaScript
css
object
asp.net
textbox
Formlist,GridView,Datalist等控件中访问自定义控件的方法
Ans.可以采用Formlist.
FindControl
的方法来处理: ((CheckBoxList)FormView1.
FindControl
("CheckBoxList1"))其他情况也以此类推
zad522
·
2007-05-03 13:00
编程
C#
.net 自用代码大全天天收藏(C#版)_01
:if(e.CommandName=="imgbtn"){ImageButtonimg=(ImageButton)(e.CommandSource);stringsTemp=((Label)(img.
FindControl
gkq8124372
·
2007-04-29 15:00
.net
String
session
C#
equals
fun
.net 自用代码大全天天收藏(C#版)_01
== "imgbtn"){ImageButton img = (ImageButton)(e.CommandSource);string sTemp = ((Label)(img.
FindControl
isiqi
·
2007-04-29 15:00
C++
c
.net
C#
Excel
.net 自用代码大全天天收藏(C#版)
1.
FindControl
查找控件 ((Button)this.Import.
FindControl
("btnReadData")).Visible=false;((HtmlTableCell)
FindControl
gkq8124372
·
2007-04-18 23:00
sql
.net
String
C#
Class
button
.net 自用代码大全天天收藏(C#版)
1.
FindControl
查找控件((Button)this.Import.
FindControl
("btnReadData")).Visible = false;((HtmlTableCell
isiqi
·
2007-04-18 23:00
C++
c
算法
.net
C#
.net c# 中获得GridView的EmptyDataTemplate中的控件的方法
EmptyDataTemplate中显示添加的TextBox,但EmptyDataTemplate中不像FooterTemplate可以直接 TextBox BankCard= GridView1.FooterRow.
FindControl
isiqi
·
2007-03-26 16:00
C++
c
.net
C#
3种方式遍历Repeater中的CheckBox全选
foreach (Control c in this .Repeater1.Controls) { HtmlInputCheckBox check = (HtmlInputCheckBox)c.
FindControl
wapysun
·
2007-03-25 21:00
C++
c
C#
在使用RowDataBound事件时犯的一个错误!
RowDataBound(objectsender,GridViewRowEventArgse) { string FaGuiID=((HiddenField)e.Row.Cells[0].
FindControl
vipxiaotian
·
2007-03-15 18:00
object
String
在VS.net 2005(ASP.NET 2.0) 中为GridView加行序的方法
objectsender,GridViewRowEventArgse) { if(e.Row.RowIndex>=0) { ((Label)e.Row.Cells[2].
FindControl
vipxiaotian
·
2007-03-12 18:00
object
asp.net
C#中强制类型转换
C#中强制类型转换常用Convert()方法:例如:Convert.ToDateTime(((HiddenField)e.Row.Cells[0].
FindControl
("HiddenField2")
vipxiaotian
·
2007-03-09 09:00
C#
温故知新ASP.NET 2.0(C#)(1) - MasterPage(母版页)
基于母版页的常用的功能有:母版页和内容页之间信息的传递,在内容页中用
FindControl
方法找到内容页中的控件等。另外,母版页是可以嵌套的。
webabcd
·
2007-02-12 22:00
net
asp
休闲
温故知新
MasterPage
温故知新ASP.NET 2.0(C#)(1) - MasterPage(母版页)
基于母版页的常用的功能有:母版页和内容页之间信息的传递,在内容页中用
FindControl
方法找到内容页中的控件等。另外,母版页是可以嵌套的。
webabcd
·
2007-02-12 22:00
net
asp
休闲
温故知新
MasterPage
解决使用Page.
FindControl
方法找不到指定控件的问题
ASP.NET开发人员在使用一些动态导入控件的功能的时候,常会遇到这样一个问题:就是明明有这个ControlID,但使用Page.
FindControl
(ControlID)得到的结果却是null,这是
geniusleft
·
2006-12-31 03:00
.net
asp.net
asp
解决使用Page.
FindControl
方法找不到指定控件的问题
阅读更多ASP.NET开发人员在使用一些动态导入控件的功能的时候,常会遇到这样一个问题:就是明明有这个ControlID,但使用Page.
FindControl
(ControlID)得到的结果却是null
geniusleft
·
2006-12-31 03:00
ASP.net
ASP
.net
一些SQL Server的应用实例
/查找控件并为其注册一段脚本System.Web.UI.WebControls.LinkButtonlnkb=(System.Web.UI.WebControls.LinkButton)e.Item.
FindControl
luck0235
·
2006-11-23 18:00
ASP.Net
updatepanel,linkbutton一点问题
昨天使用updatepanel把一个datalist控件包起来了,导致找不到datalist控件,不能为其绑定数据,代码:datalist = skin.
FindControl
("DataList1&
·
2006-08-03 13:00
update
DataList嵌套实例
DataList嵌套的重点是要在外层DataList的ItemDataBound事件中用e.Item.
FindControl
方法来找到嵌套层DataList的id,编写嵌套层DataList的绑定数据源事件
JOHNCOOLS
·
2006-07-05 22:00
DataList嵌套DataList的实现
DataList嵌套的重点是要在外层DataList的ItemDataBound事件中用e.Item.
FindControl
方法来找到嵌套层DataList的id,编写嵌套层DataList的绑定数据源事件
JOHNCOOLS
·
2006-05-01 13:00
server
String
table
asp
border
dataset
datagrid控件中添加checkbox控件列
在该类中有一个
FindControl
方法,用来在当前的命名容器中搜索指定id参数的服务器控件,其使用方法如下:publicvirtual
metababy
·
2006-03-18 10:00
datagrid控件中添加checkbox控件列
在该类中有一个
FindControl
方法,用来在当前的命名容器中搜索指定id参数的服务器控件,其使用方法如下:publicvirtual
JOHNCOOLS
·
2006-03-17 17:00
3种方式遍历repeater中的CheckBox全选
foreach (Control c in this.Repeater1.Controls) { HtmlInputCheckBox check = (HtmlInputCheckBox)c.
FindControl
JOHNCOOLS
·
2006-03-05 21:00
一个经验
DataGrid2表中有10列,其中第10是模板列(有名字为“Check”的检查筐),其他为绑定列,发现boolIsTest=((CheckBox)DataGrid2.Items[0].Cells[0].
FindControl
毛小华
·
2005-04-23 22:00
(论坛答疑点滴)有的时候DataGrid取值取不到?
有的时候想取不是编辑状态的值,这个时候通常不会使用模板列中放置TextBox通过e.Item.
FindControl
取值,有的网友问为什么取不到?
lovecherry
·
2005-04-16 16:00
DataSet学习笔记
,回想石中网站建设,充其量使用的.Net核心技术只是皮毛而已,汗颜ing…… 之前段时间因为打算做个考试系统,于是研究了动态生成控件,于是就有个如何才能取得动态控件里的值的问题,通过上网解决了,了解了
FindControl
·
2005-01-22 16:00
学习笔记
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他