<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Server Controls on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/server-controls/</link>
		<description>Recent content in Server Controls on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Tue, 12 Feb 2008 18:41:51 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/server-controls/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Page.FindControl() Returning Null Issues and Solutions Within Another Control</title>
				<link>https://www.justincarmony.com/2008/02/12/pagefindcontrol-returning-null-issues-and-solutions-within-another-control/</link>
				<pubDate>Tue, 12 Feb 2008 18:41:51 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/02/12/pagefindcontrol-returning-null-issues-and-solutions-within-another-control/</guid>
				<description>&lt;p&gt;Alright, I&amp;rsquo;m going to have a lot of blog posts over the next few days going over my wonderful expereinces learning how to create advanced server controls, and just how hard it is to find good information on the subject. But the problem I ran into today was having Page.FindControl() not work as expected.&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;Page.FindControl() can be misleading. A developer without understanding the situation could assume FindControl() will return a control found within that page. &lt;em&gt;&lt;strong&gt;This is completely wrong.&lt;/strong&gt;&lt;/em&gt; The reason this does not work is because Page does not have its own FindControl() function. It actually &lt;em&gt;&lt;strong&gt;inherits&lt;/strong&gt;&lt;/em&gt; this from Control, because Page inherits control. So FindControl() is really more like a FindChildrenControls(), and it is &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; recursive.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
