![]() |
|
|
|||||||
![]() |
ASP Net - GridView BoundField Control Names |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Is there a way to explicitly name BoundFields in a GridView? The controls
are getting names like "ctl10". There is one control that I would like to name "LocationType" so I can pass that string into FindControl() instead of the meaningless "ctl10". Thanks for the help. GridView Newbie |
|
|
|
|
#2 |
|
Posts: n/a
|
For FindControl you are using control ids, not client ids. But anyway you
can't use FindControl to locate a BoundField. FindControl is good for templates. You can data from Cells collection of the row or you may use DataItem to get the column values as they come from the database. -- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net "GridView Newbie" <GridView > wrote in message news:B4E4A25E-F0EC-4B16-A9F6-... > Is there a way to explicitly name BoundFields in a GridView? The controls > are getting names like "ctl10". There is one control that I would like to > name "LocationType" so I can pass that string into FindControl() instead > of > the meaningless "ctl10". > > Thanks for the help. Eliyahu Goldin |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mind Control and CIA'S BOURNE IDENTITY PLOT | soleilmavis@gmail.com | DVD Video | 2 | 08-03-2007 09:54 PM |
| Ajax Atlas not working in User Control | faiq | Software | 0 | 09-16-2006 08:28 AM |
| Charter Communications -- mind control | Laura | DVD Video | 0 | 01-28-2006 03:14 AM |
| FS: JP1 cable to program your universial remote control, now youcan control anything you want! | Mike | DVD Video | 0 | 07-15-2005 02:46 AM |
| I LOVE FULLSCREEN | Lookingglass | DVD Video | 139 | 01-06-2004 02:13 AM |