K. Scott Allen
Experiments in writing
My Links
RSS 2.0
Atom 0.3
Contact
Article Categories
About Me
Fiction
OdeToCode Articles
Archives
August 2008 (1)
July 2008 (8)
May 2008 (9)
April 2008 (4)
March 2008 (9)
February 2008 (4)
January 2008 (10)
December 2007 (6)
November 2007 (6)
October 2007 (11)
September 2007 (6)
August 2007 (6)
July 2007 (15)
June 2007 (14)
May 2007 (12)
April 2007 (12)
March 2007 (7)
February 2007 (6)
January 2007 (13)
December 2006 (11)
November 2006 (1)
October 2006 (13)
September 2006 (10)
August 2006 (17)
July 2006 (22)
June 2006 (15)
May 2006 (13)
April 2006 (8)
March 2006 (12)
February 2006 (12)
January 2006 (11)
December 2005 (13)
November 2005 (16)
October 2005 (12)
September 2005 (16)
August 2005 (10)
July 2005 (17)
June 2005 (17)
May 2005 (15)
April 2005 (9)
March 2005 (13)
February 2005 (16)
January 2005 (13)
December 2004 (19)
November 2004 (16)
October 2004 (17)
September 2004 (15)
August 2004 (15)
July 2004 (20)
June 2004 (12)
May 2004 (17)
April 2004 (10)
March 2004 (12)
February 2004 (9)
January 2004 (13)
Navigation
Home
Blogs
Links
OdeToCode
OTC on Twitter
LINQ Fundamentals
Stats
Posts - 646
Comments - 2,769
Trackbacks - 907
Microsoft Advertising
loading...
Ads Via Dev
Mavens
FindControl
I know using FindControl in ASP.NET is not always as easy as it would seem on the surface. Particularly when you start looking for controls inside of a DataGrid or a Repeater.
This article
should help out.
posted on Saturday, April 24, 2004 8:36 PM by
scott
Comments
Thursday, March 17, 2005 2:14 AM by
Sathya
#
re: FindControl
ads
Monday, May 09, 2005 1:18 PM by
T
#
re: FindControl
ttt
Monday, August 22, 2005 7:35 PM by
MouseSkip
#
re: FindControl
good article
Thursday, January 19, 2006 4:34 AM by
daryl
#
re: FindControl
I looked at this code and the comments.
I have an issue where I am using template columns and when a link button is clicked I run some code:
Dim txtIPTC As TextBox = CType(DataGrid1.Items(DataGrid1.SelectedIndex).FindControl("txtIPTC"), TextBox)
Problem is that datagrid1.selectedindex, always returns -1
anyway around this?