473,320 Members | 1,865 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,320 software developers and data experts.

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 1463
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 "boilerplate" 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**************@funkenbusch.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 "boilerplate" 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
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...
2
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...
3
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...
17
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...
2
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...
0
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...
4
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: ...
7
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
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" %>...
5
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.