.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 7 votes, 4.29 average. Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #31  
Old April 30th, 2008, 05:33 PM
imbrod's Avatar
imbrod imbrod is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 210 imbrod User rank is Corporal (100 - 500 Reputation Level)imbrod User rank is Corporal (100 - 500 Reputation Level)imbrod User rank is Corporal (100 - 500 Reputation Level)imbrod User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 11 h 31 m 5 sec
Reputation Power: 5
Quote:
Originally Posted by jmurrayhead
Just to add to the above, to reference the "buried" control do such:

vb.net Code:
Original - vb.net Code
  1.  
  2.     Private Sub Page_Load(sender As Object, e As EventArgs)
  3.         Dim testIDtxt As TextBox
  4.         testIDtxt = Repeater1.Controls.(0).FindControl("testID")
  5.         testIDtxt.Text = "this WILL work"
  6.     End Sub


Written in VB, but same concept.


Is this line correct?
testIDtxt = Repeater1.Controls.(0).FindControl("testID")
I tried to c&p it, but Intellisense doesn't accept:
Repeater1.Controls.(0).FindControl("testID")
Repeater1.Controls(0).FindControl("testID")
Repeater1.Controls.FindControl("testID")
...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Common causes of: Object reference not set to an instance of an object error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway