Feb 16, 2012, 1:59 PM
DirectMethod using System.Web.UI.Page extension methods
Hi all,
As i see while ready different threads in the forum, best performance is guaranted when using DirectMethods as Static.
But this case is not always possible to realize, for example when u need to access non static Page properties from DirectMethod.
I tried to find a solution by using extentions, so i create a static class witch include some static methods extending the System.Web.UI.Page control.
Could these extension methods be used as DirectMethods ?
Need a confirmation of that, because its decisif for my pattern.
Thanx in advance
As i see while ready different threads in the forum, best performance is guaranted when using DirectMethods as Static.
But this case is not always possible to realize, for example when u need to access non static Page properties from DirectMethod.
I tried to find a solution by using extentions, so i create a static class witch include some static methods extending the System.Web.UI.Page control.
Could these extension methods be used as DirectMethods ?
Need a confirmation of that, because its decisif for my pattern.
Thanx in advance
Last edited by mhammami; Feb 17, 2012 at 9:58 AM.