<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Loading a control in a Login Control may give a NullReferenceException</title><link>http://blogs.msdn.com/tom/archive/2008/08/07/loading-a-control-in-a-login-control-may-give-a-nullreferenceexception.aspx</link><description>If you try to use a Login Control and change the contents of the control when someone logs in, you have to be really careful how you do it.&amp;#160; You can only change things after certain events to ensure that the template is correct.&amp;#160; Also, some</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>car insurance &amp;raquo; Loading a control in a Login Control may give a NullReferenceException</title><link>http://blogs.msdn.com/tom/archive/2008/08/07/loading-a-control-in-a-login-control-may-give-a-nullreferenceexception.aspx#8840862</link><pubDate>Thu, 07 Aug 2008 13:20:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8840862</guid><dc:creator>car insurance &amp;raquo; Loading a control in a Login Control may give a NullReferenceException</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://hoursfunnywallpaper.cn/?p=64"&gt;http://hoursfunnywallpaper.cn/?p=64&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Loading a control in a Login Control may give a NullReferenceException</title><link>http://blogs.msdn.com/tom/archive/2008/08/07/loading-a-control-in-a-login-control-may-give-a-nullreferenceexception.aspx#8841031</link><pubDate>Thu, 07 Aug 2008 16:19:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8841031</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>re: Loading a control in a Login Control may give a NullReferenceException</title><link>http://blogs.msdn.com/tom/archive/2008/08/07/loading-a-control-in-a-login-control-may-give-a-nullreferenceexception.aspx#8841037</link><pubDate>Thu, 07 Aug 2008 16:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8841037</guid><dc:creator>Gabriel Bogéa Perez</dc:creator><description>&lt;p&gt;Thanks for the tip. The Page_Load approach is indeed much more appropriate.&lt;/p&gt;</description></item><item><title>re: Loading a control in a Login Control may give a NullReferenceException</title><link>http://blogs.msdn.com/tom/archive/2008/08/07/loading-a-control-in-a-login-control-may-give-a-nullreferenceexception.aspx#8841239</link><pubDate>Thu, 07 Aug 2008 18:59:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8841239</guid><dc:creator>Will</dc:creator><description>&lt;p&gt;You are still not totally safe in the Page_Load handler. &amp;nbsp;If the user is not authorized to see what is inside the LoginView, then those controls won't exist.&lt;/p&gt;
&lt;p&gt;For example, FindControl(&amp;quot;Multiview1&amp;quot;) could return null.&lt;/p&gt;</description></item><item><title>re: Loading a control in a Login Control may give a NullReferenceException</title><link>http://blogs.msdn.com/tom/archive/2008/08/07/loading-a-control-in-a-login-control-may-give-a-nullreferenceexception.aspx#8841297</link><pubDate>Thu, 07 Aug 2008 19:41:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8841297</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Will,&lt;/p&gt;
&lt;p&gt;Great point. &amp;nbsp;That is certainly something to keep in mind.&lt;/p&gt;
</description></item></channel></rss>