NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page FindControl and Inheritance

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 07-26-2009, 03:12 AM THREAD STARTER               #1 (permalink)
First Time Poster!
Join Date: Jul 2009
Location: Peking
Posts: 1
itags.org is an unknown quantity at this point
 



Cool FindControl and Inheritance


In V1.1 I used an inherited class â' BaseGrid - to process initialization and events for a DataGrid control. The actual control is defined in the pages that inherit from the BaseGrid class and they all use the same control ID.
????: NamePros.com http://www.namepros.com/programming/599023-findcontrol-and-inheritance.html
In the Page-Init event in BaseClass I used FindControl with the controls common name to get the actual control at runtime.
Using almost the same set-up in V2 never finds the control. I have switched to a GridView control rather than a DataGrid but otherwise the code is the same.
I have viewed BaseGrid â'thisâ' in the Watch window and canâ't see the GridView or any other server controls anywhere in any Controls collection. Any ideas on what code to use?
__________________
I'm good at Dotnet,Database,Microsoft Technology,Java,Mail,Programming,Network,Software. ..
I'm Microsoft, I'm Sun, I'm Apple, I'm Oracle, I'm Google...
Hahaha, It's joke,the world the joke...
itags.org is offline   Reply With Quote
Reply

Tags
asp


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:30 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger