<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET Tip/Trick: Use a Base Page Class for All Application Pages</title>
	<atom:link href="http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/</link>
	<description>Practical tips and tricks for all things .NET, SharePoint, Silverlight, InfoPath, and general application development.</description>
	<lastBuildDate>Wed, 12 May 2010 15:57:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jyest</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1208</link>
		<dc:creator>jyest</dc:creator>
		<pubDate>Mon, 19 Oct 2009 10:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1208</guid>
		<description>Hi, it&#039;s a really helpful article to me,

Just 1 question, I use vb.net, and when I try to use following code in my code, I got a dead loop

    &#039;If the URL is modified 
    Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        &#039;mybase.OnInit(e) will invoke Page_Init 
        MyBase.OnInit(e)
    End Sub

Any ideas or suggestions?  thanks</description>
		<content:encoded><![CDATA[<p>Hi, it&#8217;s a really helpful article to me,</p>
<p>Just 1 question, I use vb.net, and when I try to use following code in my code, I got a dead loop</p>
<p>    &#8216;If the URL is modified<br />
    Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init<br />
        &#8216;mybase.OnInit(e) will invoke Page_Init<br />
        MyBase.OnInit(e)<br />
    End Sub</p>
<p>Any ideas or suggestions?  thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram Chandra Nagar</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1107</link>
		<dc:creator>Ram Chandra Nagar</dc:creator>
		<pubDate>Tue, 14 Jul 2009 07:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1107</guid>
		<description>Hi this is use full if you are working on web based application realy its reduse code redudency 
thanks</description>
		<content:encoded><![CDATA[<p>Hi this is use full if you are working on web based application realy its reduse code redudency<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DevExpert</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1089</link>
		<dc:creator>DevExpert</dc:creator>
		<pubDate>Thu, 25 Jun 2009 19:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1089</guid>
		<description>Hilton, very interesting.  I hadn&#039;t even considered page adapters for this.  I&#039;ll definitely keep it in mind for future projects.  Thank you!</description>
		<content:encoded><![CDATA[<p>Hilton, very interesting.  I hadn&#8217;t even considered page adapters for this.  I&#8217;ll definitely keep it in mind for future projects.  Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DevExpert</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1087</link>
		<dc:creator>DevExpert</dc:creator>
		<pubDate>Thu, 25 Jun 2009 19:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1087</guid>
		<description>Good stuff -- thanks for the info!!</description>
		<content:encoded><![CDATA[<p>Good stuff &#8212; thanks for the info!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Haggren</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1081</link>
		<dc:creator>Thomas Haggren</dc:creator>
		<pubDate>Wed, 24 Jun 2009 16:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1081</guid>
		<description>Great article :)

Here is a good article about the &quot;Response.Redirect(url) ThreadAbortException&quot; http://www.c6software.com/CodeSolutions/dotnet/ThreadAbortException.aspx</description>
		<content:encoded><![CDATA[<p>Great article <img src='http://www.devexpertise.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here is a good article about the &#8220;Response.Redirect(url) ThreadAbortException&#8221; <a href="http://www.c6software.com/CodeSolutions/dotnet/ThreadAbortException.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.c6software.com');" rel="nofollow">http://www.c6software.com/CodeSolutions/dotnet/ThreadAbortException.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hilton Giesenow</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1058</link>
		<dc:creator>Hilton Giesenow</dc:creator>
		<pubDate>Thu, 11 Jun 2009 10:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1058</guid>
		<description>Nice post, some great tips! My only problem with a new base class is that developers can forget to do it. Some other possible solutions are overriding the default Visual Studio templates, and using Extension Methods. I&#039;ve got a &lt;a href=&quot;http://dotnet.org.za/hiltong/archive/2008/01/06/injecting-a-page-base-class-in-asp-net.aspx&quot; rel=&quot;nofollow&quot;&gt;complimentary idea on using PageAdapters&lt;/a&gt; to do some similar things that might be of interest.</description>
		<content:encoded><![CDATA[<p>Nice post, some great tips! My only problem with a new base class is that developers can forget to do it. Some other possible solutions are overriding the default Visual Studio templates, and using Extension Methods. I&#8217;ve got a <a href="http://dotnet.org.za/hiltong/archive/2008/01/06/injecting-a-page-base-class-in-asp-net.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/comment/dotnet.org.za');" rel="nofollow">complimentary idea on using PageAdapters</a> to do some similar things that might be of interest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Ohlsen</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1048</link>
		<dc:creator>Mike Ohlsen</dc:creator>
		<pubDate>Tue, 02 Jun 2009 15:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1048</guid>
		<description>DevExpert, you just have to be careful.  using &lt;code&gt;Response.Redirect(url, false)&lt;/code&gt; means execution continues.  Any code after Response.Redirect (which you dont have any in your example) and in later page events will still fire.  So you have to be aware.</description>
		<content:encoded><![CDATA[<p>DevExpert, you just have to be careful.  using <code>Response.Redirect(url, false)</code> means execution continues.  Any code after Response.Redirect (which you dont have any in your example) and in later page events will still fire.  So you have to be aware.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DevExpert</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1047</link>
		<dc:creator>DevExpert</dc:creator>
		<pubDate>Tue, 02 Jun 2009 14:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1047</guid>
		<description>Mike -- why didn&#039;t I use that?  Because I didn&#039;t know it existed!  *Insert newbie comment here*

Thanks a million for pointing this out!!</description>
		<content:encoded><![CDATA[<p>Mike &#8212; why didn&#8217;t I use that?  Because I didn&#8217;t know it existed!  *Insert newbie comment here*</p>
<p>Thanks a million for pointing this out!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Ohlsen</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1046</link>
		<dc:creator>Mike Ohlsen</dc:creator>
		<pubDate>Tue, 02 Jun 2009 14:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1046</guid>
		<description>Why not use &lt;code&gt;Response.Redirect(url, false)&lt;/code&gt;?  This will prevent the ThreadAbortException from being thrown and allow processing to continue with calling Response.End.

http://msdn.microsoft.com/en-us/library/a8wa7sdt(VS.80).aspx
http://support.microsoft.com/default.aspx?scid=kb;en-us;312629</description>
		<content:encoded><![CDATA[<p>Why not use <code>Response.Redirect(url, false)</code>?  This will prevent the ThreadAbortException from being thrown and allow processing to continue with calling Response.End.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/a8wa7sdt(VS.80).aspx" onclick="javascript:pageTracker._trackPageview('/outbound/comment/msdn.microsoft.com');" rel="nofollow">http://msdn.microsoft.com/en-us/library/a8wa7sdt(VS.80).aspx</a><br />
<a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;312629" onclick="javascript:pageTracker._trackPageview('/outbound/comment/support.microsoft.com');" rel="nofollow">http://support.microsoft.com/default.aspx?scid=kb;en-us;312629</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DevExpert</title>
		<link>http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/comment-page-1/#comment-1044</link>
		<dc:creator>DevExpert</dc:creator>
		<pubDate>Tue, 02 Jun 2009 13:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/#comment-1044</guid>
		<description>Shail,
1. This will work fine, as long as you don&#039;t inherit your master page class from this class -- they&#039;re 2 different types of classes.  This will only work for ASPX application pages.  As long as you inherit only your ASPX pages, it shouldn&#039;t break anything.
2. Nope, this approach doesn&#039;t do anything to break event handlers.  Keep in mind that you&#039;re already using inheritance and using a base page class (the System.Web.UI.Page) when you&#039;re creating ASPX pages.  The only difference here is you&#039;re adding another layer between that class and your ASPX pages.  Ultimately though, every page will still inherit from System.Web.UI.Page.
3. Yep, IntelliSense will pick these methods up.

Good luck!</description>
		<content:encoded><![CDATA[<p>Shail,<br />
1. This will work fine, as long as you don&#8217;t inherit your master page class from this class &#8212; they&#8217;re 2 different types of classes.  This will only work for ASPX application pages.  As long as you inherit only your ASPX pages, it shouldn&#8217;t break anything.<br />
2. Nope, this approach doesn&#8217;t do anything to break event handlers.  Keep in mind that you&#8217;re already using inheritance and using a base page class (the System.Web.UI.Page) when you&#8217;re creating ASPX pages.  The only difference here is you&#8217;re adding another layer between that class and your ASPX pages.  Ultimately though, every page will still inherit from System.Web.UI.Page.<br />
3. Yep, IntelliSense will pick these methods up.</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
