Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking if a control is loaded - isInitialized ?

Status
Not open for further replies.

tester321

Programmer
Mar 13, 2007
150
CA
is there a way to check if a control have been loaded?

Thanks
 
You really shouldn't care if a control has been loaded or not...

What is the situation you are running into? There may be a better way to do what you're looking for.

 
Hi JurkMonkey, i'm not in a situation but was reading on C#, and it was just a question i thought of. thanks
 
The InitializeComponent() method is normally called on any GUI items in order to load them before performing any action on them. This basically ensures that they are loaded first.

 
Thanks, i'm thinking that it might be used in an aspx page like so, does this seem correct:

<% if (!InitializeComponent("ASPX_control_to_be_loaded"))
Response.Redirect("page.htm");
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top