473,466 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Forms and Master Pages

I have a master page that contains an html form and a few server controls (dropdown, textbox). When I perform a postback, to
which page does the form post back - the master page or one of the content pages?

Thanks,
Roshawn
P.S. I'm tired of experimenting for the day, so I thought I'd just ask this question instead. :-)
Feb 1 '07 #1
3 950
"Roshawn" <ra*********@yahoo.comwrote in message
news:ug****************@TK2MSFTNGP04.phx.gbl...
I have a master page that contains an html form and a few server controls
(dropdown,
textbox). When I perform a postback, to which page does the form post
back - the master page or one of the content pages?
If you remember that a MasterPage isn't actually a 'page' at all - it's a
UserControl - then it should be clear to you...

When a content page is loaded either through redirection or postback, it
loads its associated MasterPage just like it would load any other
UserControl and constructs the page.
Feb 1 '07 #2
To Mark Rae:
If you remember that a MasterPage isn't actually a 'page' at all - it's a
UserControl - then it should be clear to you...
I wasn't aware of that...
When a content page is loaded either through redirection or postback, it
loads its associated MasterPage just like it would load any other
UserControl and constructs the page.
Ok. That explains it. Thanks for the help.

Have a nice day, :-)
Roshawn
Feb 1 '07 #3
"Roshawn" <ra*********@yahoo.comwrote in message
news:O7**************@TK2MSFTNGP05.phx.gbl...
>If you remember that a MasterPage isn't actually a 'page' at all - it's a
UserControl - then it should be clear to you...

I wasn't aware of that...
It's a common misconception - similarly, a lot of people first imagine that
MasterPages are somehow like framesets, and get annoyed at not being able to
make the MasterPage change the content page... :-)
>When a content page is loaded either through redirection or postback, it
loads its associated MasterPage just like it would load any other
UserControl and constructs the page.

Ok. That explains it. Thanks for the help.
Welcome.
Feb 1 '07 #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...
6
by: eric.olstad | last post by:
I'm pullin my hair out here. I've created a login page that uses Forms Authentication. Initially, it loads the types of authentication methods from a database and asks the user to select the auth...
1
by: gilly3 | last post by:
I'd like to use a master page for (nearly) every page in my ASP.NET 2.0 website. I also have some webpages that I'd like to protect by using forms authorization. I have a page that requires...
2
by: Rob R. Ainscough | last post by:
I'm using forms authentication along with Master pages -- my authenticated forms reside is a sub-dir (Secure) below the web site root dir. The problem is that any graphics placed on the Master...
2
by: Kevin | last post by:
Hello my name is Kevin i have a problem with loading a css file for my Login.aspx when i remove the <Authenticationpart below my layout is shown in my login page otherwise it doenst load the...
0
by: Sergio E. | last post by:
Hello, I have a problem with masterpages and forms security. I made a new Web site, in which I have my page login.aspx as the homepage , a master page with only a sitemappath object in it, the...
8
by: =?Utf-8?B?QW1yaXQgS29obGk=?= | last post by:
Okay, after much research, I have discovered a few interesting things in ASP.NET. I have a MasterPage that has a WebForm on it and it looks like this: <body> <form id="controls"...
3
by: MikeB | last post by:
Hello, I have a content page that is from a Master page which has 2 content panes. How do I add my forms to the content page? Each pane needs a form but you can not have multiple form tags nor...
0
by: tagg3rx | last post by:
Hi All, I'm trying to get forms based auth up and working and I'm running into a little snag. My login page needs to access css files and images in my application and when I enable the...
5
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the...
0
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,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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 ...

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.