473,396 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Front Controller working version

Can someone please provide me working version of front controller
framework so i can start project.

Any link would be great. the one on microsoft site is complecated

Nov 19 '05 #1
4 1044
Can some pls tell me how can i pass the url on base page the handle
what is the syntax.
aspx page
public class Main : Handler.BasePage
{

protected override void PageLoadEvent(object sender, System.EventArgs
e)
{

}
}

MyBase class

public class BasePage : Page
{
virtual protected void PageLoadEvent(object sender, System.EventArgs
e)
{}
protected void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
what is the sysntax
PageLoadEvent(sender, e);
}
}
}

handler class
public void ProcessRequest(HttpContext context)
{
handler.ProcessRequest(context);
}

Nov 19 '05 #2
Hello Matt,

Do you mean Request.Url?

You can access that in your derived class without passing it because of the
wonders of inheritance. :)

--
Matt Berther
http://www.mattberther.com
Can some pls tell me how can i pass the url on base page the handle
what is the syntax.
aspx page
public class Main : Handler.BasePage
{
protected override void PageLoadEvent(object sender,
System.EventArgs
e)
{
}
}
MyBase class

public class BasePage : Page
{
virtual protected void PageLoadEvent(object sender, System.EventArgs
e)
{}
protected void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
what is the sysntax
PageLoadEvent(sender, e);
}
}
}
handler class
public void ProcessRequest(HttpContext context)
{
handler.ProcessRequest(context);
}


Nov 19 '05 #3
Thanks matt
But I am not sure
On Aspx.cs file i inherit BasePage CS to handel Page_Load and when
page_load executes, just would like to ref handler to find out the url.
so i have to do something in basepage.cs to get handler to get me the
page

just want to find out what i am suppose to write in basePage void
page_load method.
handler.ProcessRequest(context*); works fine. i just have to give this
guy or pass him the page that i want i think.

thanks

Nov 19 '05 #4
Hello Matt,

Implementing Front Controller can be quite difficult with just a q/a session.
The patterns and practices group has an article [1] that talks about this.
Why dont you review this and see if it helps with some of these questions.
Once you've reviewed that and tried the suggestions in there, if you're still
stuck, let me know. Id be glad to help you from there.

[1] http://msdn.microsoft.com/library/de...ollerInASP.asp

--
Matt Berther
http://www.mattberther.com
Thanks mattBut I am not sureOn Aspx.cs file i inherit BasePage CS to
handel Page Load and whenpage load executes, just would like to ref
handler to find out the url.so i have to do something in basepage.cs
to get handler to get me thepagejust want to find out what i am
suppose to write in basePage voidpage load method.
handler.ProcessRequest(context*); works fine. i just have to give this
guy or pass him the page that i want i think.thanks


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Prasad Patil | last post by:
Hi I am trying to understand the article http://msdn.microsoft.com/practices/type/Patterns/Enterprise/DesFrontController/...
1
by: NGM | last post by:
Hello All When implementing FrontController sample MSDN I am facing a lot of problems try implementing the front controller patterm sample provided by microsoft:...
2
by: Prasad Patil | last post by:
Hi I am trying to understand the article http://msdn.microsoft.com/practices/type/Patterns/Enterprise/DesFrontController/...
3
by: Ashish | last post by:
Is anyone aware of a good Front Controller Pattern implementation in ASP.Net, we are developing a new product, and contemplating whether we should use Front Controller Pattern implementation, due...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.