By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

ensuring that all declared controls have been drawn

P: n/a
Is there a way to make sure that all the declared controls in the
declaration block of my ASP.NET class?

So say, I have a textbox control declared.
protected System.Web.UI.WebControls.TextBox TextBox1;

Then say the control gets deleted. VS.NET does not always get rid of the
declaration, and then when a piece of code that refers to the control runs,
I get a null reference error message.

So is there a way to run some kind of validation check to make sure all the
declared controls have been drawn?
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.