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

New to Master Pages using VS 2008 Web Developer

Ty
Hello,
I have made a Master Page that basically consists of a table with 2
rows and 3 columns. The first row spans all 3 cols to form a header.
The first column in the 2nd row is being used as a vertical menu. The
2nd & 3rd columns of the second row are joined to make one large cell.

So for visualization picture a page with a header and a vertical menu
on the left side with a large open space to the right of the menu.

I placed the content holder into the large cell. I created a new form
referenced to the master page. All is good so far.

The content holder on the new form looks like long textbox. I had
originally thought that I would just drag the controls on to the
content holder and position them as I liked however the problem is
that the content holder does not act like a form as I thought where
you could drag controls on and position them as you want so now I'm
stuck.

Can you place a new form into the area just like a web form so that
you can drag and position controls as you like? How would you do that
as form is not an option in the toolbox?

Is there another way to accomplish this. I tried adding a table with 1
row and expanded it to create the large work space but you cannot drag
control onto the table. they always place themselves before the table
in the content holder area. This is very frustrating. It seems counter
productive to not allow random placement of controls inside the
content area.

Hoping for help

Ty
Feb 22 '08 #1
4 1563
"Ty" <tb*****@lewistownhospital.orgwrote in message
news:d0**********************************@n58g2000 hsf.googlegroups.com...
I have made a Master Page that basically consists of a table with 2
rows and 3 columns. The first row spans all 3 cols to form a header.
The first column in the 2nd row is being used as a vertical menu. The
2nd & 3rd columns of the second row are joined to make one large cell.
Sounds like you don't actually need the third column...
I placed the content holder into the large cell. I created a new form
referenced to the master page. All is good so far.
Alas not... ASP.NET pages can have only one server-side form and, in the
case of a MasterPage / content page scenario, it goes in the MasterPage, not
the content page...
Can you place a new form into the area just like a web form so that
you can drag and position controls as you like? How would you do that
as form is not an option in the toolbox?
No -see above...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 22 '08 #2
The main reason for only one form is the difference in the paradigm, going
to DotNet - since it's an Object Oriented/Event Driven platform, there is no
need to have more than one....
Each button you put on the form (all within the same ONE form tag) has its
own event - therefore, you can do all the things you think you need multiple
forms for, with multiple buttons inside one form

This enormously opens your options, over the old "one form one page"
paradigm

I hope this helps

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Ty" <tb*****@lewistownhospital.orgwrote in message
news:d0**********************************@n58g2000 hsf.googlegroups.com...
Hello,
I have made a Master Page that basically consists of a table with 2
rows and 3 columns. The first row spans all 3 cols to form a header.
The first column in the 2nd row is being used as a vertical menu. The
2nd & 3rd columns of the second row are joined to make one large cell.

So for visualization picture a page with a header and a vertical menu
on the left side with a large open space to the right of the menu.

I placed the content holder into the large cell. I created a new form
referenced to the master page. All is good so far.

The content holder on the new form looks like long textbox. I had
originally thought that I would just drag the controls on to the
content holder and position them as I liked however the problem is
that the content holder does not act like a form as I thought where
you could drag controls on and position them as you want so now I'm
stuck.

Can you place a new form into the area just like a web form so that
you can drag and position controls as you like? How would you do that
as form is not an option in the toolbox?

Is there another way to accomplish this. I tried adding a table with 1
row and expanded it to create the large work space but you cannot drag
control onto the table. they always place themselves before the table
in the content holder area. This is very frustrating. It seems counter
productive to not allow random placement of controls inside the
content area.

Hoping for help

Ty

Feb 22 '08 #3
Ty
It does make sense but I guess I'm stuff with what is the
alternative.....using tables within the content area to hold the
controls and adding the controls through code to position where you
want them since you cannot drag controls onto a table?

It almost makes me wonder why bother I mean the nice thing about web
forms is the ability to drag and drop controls If I lose that then I'd
be better off just creating a user control or copying the base code
for the menus onto each form.

Ty

Feb 22 '08 #4
"Ty" <tb*****@lewistownhospital.orgwrote in message
news:d2**********************************@n58g2000 hsf.googlegroups.com...
It almost makes me wonder why bother I mean the nice thing about web
forms is the ability to drag and drop controls If I lose that then I'd
be better off just creating a user control or copying the base code
for the menus onto each form.
The whole point of using MasterPages is precisely so you *don't* have to
copy the base code for the menus onto each form - because there's only *one*
form, and it lives on the MasterPage...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 22 '08 #5

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

Similar topics

9
by: Andrew Kidd | last post by:
Hi, I've just been working through several examples of how to create Master pages and then create content pages which are linked, but I cannot see the Master page when I'm viewing the content...
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: Alec MacLean | last post by:
Hi I've just recently upgraded to VS2005 and started using/learning about the Master Pages. I'd like to know if it is possible to have separate web app projects use the master page(s) from...
1
by: Don | last post by:
I'm using master pages and have added some base functionality (public functions) into this class. I then create a new web form using the above as the master page. In the code of my new web form,...
2
by: n# | last post by:
I have an old existing website with a Header/ Left Hand Menu and a iframe as the main body content, adjacent to the menu. So for every click on the menu item, I used to load a aspx page on the...
7
by: oliharvey | last post by:
I'm an experienced web developer - but haven't used master pages much. I find that I'm not really comfortable with them - so perhaps I'm missing something..... When I first read about them I...
1
by: shapper | last post by:
Hello, I am using ASP.NET 3.5 and VS 2008 to create 2 level Nested Master pages. I am adding the controls and the content place holders at runtime. However now my child pages do not recognize...
4
by: Cirene | last post by:
I am using VS.NET 2008. In Dreamweaver you can create page templates (equivalent to Master Pages) and make HTML documents based on them. In VS.NET can you have a HTML file linked to a Master...
6
by: Mickey | last post by:
Coming from a Dreamweaver/ASP/PHP background. Planning to use Visual Studio 2008 for a website. Complete newbie question here (please be gentle!): Do master pages work similar to Dreamweaver...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.