473,569 Members | 3,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Master Page in Asp.Net

Hello,

Asp.net 2.0 introduced a new component Master Page.
Does it do the same work like controller in MVC model or
what is it's purpose?

Like to know what component in Asp.Net 2.0 act like
controller in MVC.

Cheers!
Jun 11 '06 #1
3 1471
On Sun, 11 Jun 2006 21:26:25 +0300, Eetu wrote:
Hello,

Asp.net 2.0 introduced a new component Master Page.
Does it do the same work like controller in MVC model or
what is it's purpose?
Master Pages are simply a way to standardize the look and feel of your page
across your site. You define a "boilerplat e" page layout, then use
"Content Placeholders" to insert the html that is unique to a given page.

This is not related to MVC at all. If anything, Master Pages and Content
Pages are the "view" of the MVC.
Like to know what component in Asp.Net 2.0 act like
controller in MVC.


There is no MVC componens provided by ASP.NET. There are several third
party frameworks that give you MVC functionality (some free, some
commercial).
Jun 11 '06 #2
So, Master Page is like Tiles in Jakarta Struts.
But how Asp.Net 2.0 programmers usually design and implement
their pages? They have asp (html page) and e.g. C# file for data structures
and
data manipulation. But how it's organized if MVC is not used and there are
no Controllers?

Aren't there any one entrypoint to consentrate user's request from browser?

Cheers!

"Erik Funkenbusch" <er**@despam-funkenbusch.com > wrote in message
news:dl******** ******@funkenbu sch.com...
On Sun, 11 Jun 2006 21:26:25 +0300, Eetu wrote:
Hello,

Asp.net 2.0 introduced a new component Master Page.
Does it do the same work like controller in MVC model or
what is it's purpose?


Master Pages are simply a way to standardize the look and feel of your
page
across your site. You define a "boilerplat e" page layout, then use
"Content Placeholders" to insert the html that is unique to a given page.

This is not related to MVC at all. If anything, Master Pages and Content
Pages are the "view" of the MVC.
Like to know what component in Asp.Net 2.0 act like
controller in MVC.


There is no MVC componens provided by ASP.NET. There are several third
party frameworks that give you MVC functionality (some free, some
commercial).

Jun 12 '06 #3
On Mon, 12 Jun 2006 18:37:36 +0300, Eetu wrote:
But how Asp.Net 2.0 programmers usually design and implement
their pages?
Any way they like.
They have asp (html page) and e.g. C# file for data structures
and data manipulation. But how it's organized if MVC is not used
and there are no Controllers?
ASP.NET is an event driven model, like Visual Basic. Events are dispatched
to functions that handle those events. In a way, the code behind is a form
of controller, but most people don't really consider it that way because
teh ASP.NET runtime hides much of that from you.
Aren't there any one entrypoint to consentrate user's request from browser?


That happens behind the scenes in the ASP.NET Page class, which is an
ASP.NET HttpHandler. Its job is to figure out what functions to call based
on the events the user generates.

For ASP.NET 1.1, Microsoft offered a downloadable MVC framework called the
User Interface Process Application Block, but this has been discontinued
for .NET 2.0. There is rumored to be something to replace it in the works,
but nothing concrete yet that I'm aware of. UIPAB was a bit too cumbersome
and tried to unify Windows Forms and ASP.NET, and it just didn't work
right.

As I said, there are a number of third party solutions out there.

http://www.c-sharpcorner.com/Code/20.../MVCDesign.asp
http://www.dmbcllc.com/Articles/WebD...3/Default.aspx

etc.. google is your friend.

You might also want to read some opinions on the other side of the fence:

http://codebetter.com/blogs/eric.wis.../13/21976.aspx
Jun 12 '06 #4

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

Similar topics

5
2406
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the web part page? Does it take place at the page level? ...or the content area level? 3. Where is the Web Part Manager instantiated? ...in the...
2
1740
by: Jon Spivey | last post by:
Hi, Using VS 2005/VB.net. I need to add a meta description tag and change a stylesheet link from a page based on a master page. Found this article http://msdn.microsoft.com/asp.net/reference/design/default.aspx?pull=/library/en-us/dnvs05/html/masterpages.asp#masterpages_topic8 Which seems to suggest it's possible (Listing 11 half way down the...
3
6400
by: ivanpais | last post by:
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property BarLabelText. I now have a contentpage "FooBar.aspx", where "Bar.master" is the master page and in the content section has the control "Foo.ascx".
17
3141
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
2
6956
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no header. I tried to put the link tag in the Master page, but the classes are not recognized in the Content Page. How do I use a StyleSheet with the...
0
2086
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and sets a connection string to the database. The content page has a simple gridview that should show records from the selected database. Initial...
4
3965
by: Boris Yeltsin | last post by:
OK, on my Master Page I have a control: <a id="hypTabAccount" href="#" runat="server">Account</a> Now, in the code-behind (Root.master.vb) I can refer to it simply thus: hypTabAccount.InnerText = "blah" Now, what I want is the same in a content page that uses the Master Page. I have a Master Type in my Content page:
7
2175
by: Just Me | last post by:
Hi I have a master page with a control on it, but I need to set a property of that control from the content. my master page is called Admin.Master and the class is Admin. I have tried this
6
9124
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %> On the Master Page I have a public property exposed: Public Property ErrorMessage() As String Get Return txtError.InnerText End Get
5
2706
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm trying to make my code as streamlined as possible, and add CSS file references dynamically when they are required, for example, if a page contains a webcontrol, then the related CSS file is added by the webcontrol. This prevents me having to remember to add the CSS file to the page if I use a certain webcontrol. I have a...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7930
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7681
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.