<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Israel Aéce - All Comments</title><link>http://weblogs.asp.net/israelaece/default.aspx</link><description>Microsoft MVP, MCP, MCAD, MCTS, MCPD and MCT</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: Server.Transfer is limited?</title><link>http://weblogs.asp.net/israelaece/archive/2006/07/26/Server.Transfer-is-limited_3F00_.aspx#6154231</link><pubDate>Sat, 03 May 2008 19:28:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6154231</guid><dc:creator>$tealth</dc:creator><description>&lt;p&gt;Well clearly from that reflector dump the Server.Transfer method needs a little re-coding to work the way it should and not just for Page types.&lt;/p&gt;
&lt;p&gt;I read somewhere a tech at Microsoft said this was a design decision to prevent an endless recursive operation resulting in stack overflow...crap! Why?, well there's nothing to stop that happening if you used Server.Transfer in a Page that transfered back to itself, so not a good reason, just a cock up if you wrote code that got itself in that sort of mess.&lt;/p&gt;
&lt;p&gt;I overcame this problem by chaining method calls together, like the following pseudocode illustrates:&lt;/p&gt;
&lt;p&gt;class A : IHttpHandler {&lt;/p&gt;
&lt;p&gt; public void ProcessRequest(HttpContext context) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;if (context.Request[&amp;quot;type&amp;quot;]==&amp;quot;b&amp;quot;) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; IHttpHandler b = new B();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; b.ProcessRequest(context);&lt;/p&gt;
&lt;p&gt; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;class B : IHttpHandler {&lt;/p&gt;
&lt;p&gt; public void ProcessRequest(HttpContext context) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Render response...&lt;/p&gt;
&lt;p&gt; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Not elegant either, but until Server.Transfer gets fixed at least it stops the round trip overhead incurred with Response.Redirect.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6154231" width="1" height="1"&gt;</description></item><item><title>re: Server.Transfer is limited?</title><link>http://weblogs.asp.net/israelaece/archive/2006/07/26/Server.Transfer-is-limited_3F00_.aspx#5581336</link><pubDate>Thu, 10 Jan 2008 13:02:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5581336</guid><dc:creator>sudheer</dc:creator><description>&lt;p&gt;what are the reasons like asp.net server was overloaded,&lt;/p&gt;
&lt;p&gt;so, can you please explan me why it happens&lt;/p&gt;
&lt;p&gt;what are the reasons please let me know&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5581336" width="1" height="1"&gt;</description></item><item><title>re: Contract between ASPX and ASCX</title><link>http://weblogs.asp.net/israelaece/archive/2007/01/05/contract-between-aspx-and-ascx.aspx#1369699</link><pubDate>Sat, 06 Jan 2007 02:44:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1369699</guid><dc:creator>Christophe Fouquet</dc:creator><description>&lt;p&gt;Another solution is to make a base class in AppCode and make a virtual method. You can then use this as a base for your page and override the method. The ascx has then no problem calling via the base. As a side note,&lt;/p&gt;
&lt;p&gt;I found that making a base class in AppCode for all pages in a site is really handy. For instance, we have a GetLink() static method on the base that returns the path the page (derived).&lt;/p&gt;
&lt;p&gt;In AppCode&lt;/p&gt;
&lt;p&gt;public class AdminHomeBase : Page&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;public static string GetLink() { return &amp;quot;~/Admin/main.aspx&amp;quot;; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;In Code File&lt;/p&gt;
&lt;p&gt;public partial AdminHome : AdminHomeBase&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Now in any ascx anywhere on the site you can make a link to the admin page&lt;/p&gt;
&lt;p&gt;MyLinkNavigateUrl = typeof(AdminHomeBase).GetLink();&lt;/p&gt;
&lt;p&gt;Nice to have a compile time check for all your page links isn't it?&lt;/p&gt;
&lt;p&gt;CF&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1369699" width="1" height="1"&gt;</description></item><item><title>re: Server.Transfer is limited?</title><link>http://weblogs.asp.net/israelaece/archive/2006/07/26/Server.Transfer-is-limited_3F00_.aspx#1351851</link><pubDate>Tue, 02 Jan 2007 19:49:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1351851</guid><dc:creator>Marco von Frieling</dc:creator><description>&lt;p&gt;I've exactly the same problem: Creating binary files from the inputs of the transferring Page. The type of input/data is related to tax, National Insurance etc. and should therefore transferred to the handler directly on the server.&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1351851" width="1" height="1"&gt;</description></item><item><title>re: WTF!</title><link>http://weblogs.asp.net/israelaece/archive/2006/12/12/wtf.aspx#1218764</link><pubDate>Tue, 12 Dec 2006 11:45:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1218764</guid><dc:creator>israel aece</dc:creator><description>&lt;p&gt;Hello Mladen,&lt;/p&gt;
&lt;p&gt;VB.NET has a short-circuit operator: OrElse and AndAlso, so in OrElse case, if the first condition is True, the second is not evaluated. But all conditions in above code are making the same verification.&lt;/p&gt;
&lt;p&gt;If you need to test thenstring value, you only need to use the static method IsNullOrEmpty of String class.&lt;/p&gt;
&lt;p&gt;Thanks for comment.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1218764" width="1" height="1"&gt;</description></item><item><title>re: WTF!</title><link>http://weblogs.asp.net/israelaece/archive/2006/12/12/wtf.aspx#1218743</link><pubDate>Tue, 12 Dec 2006 11:28:31 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1218743</guid><dc:creator>Mladen</dc:creator><description>&lt;p&gt;besides the obvious WTF,&lt;/p&gt;
&lt;p&gt;does VB evalate all of the conditions in the or?&lt;/p&gt;
&lt;p&gt;because C# stops when it reaches the first true.&lt;/p&gt;
&lt;p&gt;so if &lt;/p&gt;
&lt;p&gt;str is Nothing and VB evaluates them all&lt;/p&gt;
&lt;p&gt;then Len(str) = 0 will throw an exception. &lt;/p&gt;
&lt;p&gt;won't it?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1218743" width="1" height="1"&gt;</description></item><item><title>re: HTTP Pipeline - Performance</title><link>http://weblogs.asp.net/israelaece/archive/2006/11/21/http-pipeline-performance.aspx#998958</link><pubDate>Wed, 22 Nov 2006 16:10:37 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:998958</guid><dc:creator>israel aece</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In ASP.NET/.NET 2.0 there is a Web.Config file in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\ path where you can view the default httpModules.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=998958" width="1" height="1"&gt;</description></item><item><title>re: HTTP Pipeline - Performance</title><link>http://weblogs.asp.net/israelaece/archive/2006/11/21/http-pipeline-performance.aspx#998884</link><pubDate>Wed, 22 Nov 2006 15:37:27 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:998884</guid><dc:creator>v</dc:creator><description>&lt;p&gt;very interesting, there is httpmodules section in 1.1 machine.config, but I'm it is not in the 2.0. Could you point to where this trick could be implemented in 2.0?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=998884" width="1" height="1"&gt;</description></item><item><title>re: Checking authorization through roles</title><link>http://weblogs.asp.net/israelaece/archive/2006/10/31/Checking-authorization-through-roles.aspx#774223</link><pubDate>Tue, 31 Oct 2006 18:56:27 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:774223</guid><dc:creator>Israel Aece</dc:creator><description>&lt;p&gt;OK, when you call the IsUserInRole the ASP.NET runtime get roles from GenericPrincipal but, for each request, it's necessary to bind a Principal because the HTTP is stateless.&lt;/p&gt;
&lt;p&gt;So, if you don't caching roles in client-side (cookies), each request the stored procedure aspnet_UsersInRoles_GetRolesForUser is performed for retrieve the current roles for user.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=774223" width="1" height="1"&gt;</description></item><item><title>re: Checking authorization through roles</title><link>http://weblogs.asp.net/israelaece/archive/2006/10/31/Checking-authorization-through-roles.aspx#774092</link><pubDate>Tue, 31 Oct 2006 18:28:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:774092</guid><dc:creator>Andrey Skvortsov</dc:creator><description>&lt;p&gt;He means &amp;quot;every request&amp;quot;,I suppose-every request must be authentificated,so array of roles retrieved to construct GenericPrincipal.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=774092" width="1" height="1"&gt;</description></item></channel></rss>