Both ways are fine.If you want to add a masterpage to a web form, just remove the html tags and body etc, put a reference to masterpage file and put it inside contentplaceholder.
Usually i'd go for masterpages first, but as i said it doesn't matters.
I always work from a master page first principle, since it means when creating the content pages I can see them in the context of the central layout. The real problem when working the other way is that you'd have to modify your pages to fit in the master
page.
Marked as answer by ehsanie4it on May 08, 2012 09:01 AM
ehsanie4it
Member
64 Points
114 Posts
master page
May 08, 2012 08:31 AM|LINK
hello
in my website design i don't have master page layout now , but i will add it later .that's why i want to design my web forms first ,
and then add and attach the master page to my web forms . is that possible ?
because in usuall first i design a master page and then attach a web form to it. but i don't know does it work in vice versa?
what do you usually do : first design master page and then attach web form to it or some thing else?
nijhawan.sau...
All-Star
16420 Points
3173 Posts
Re: master page
May 08, 2012 08:45 AM|LINK
Both ways are fine.If you want to add a masterpage to a web form, just remove the html tags and body etc, put a reference to masterpage file and put it inside contentplaceholder.
Usually i'd go for masterpages first, but as i said it doesn't matters.
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: master page
May 08, 2012 08:47 AM|LINK
I always work from a master page first principle, since it means when creating the content pages I can see them in the context of the central layout. The real problem when working the other way is that you'd have to modify your pages to fit in the master page.
ehsanie4it
Member
64 Points
114 Posts
Re: master page
May 08, 2012 09:04 AM|LINK
thank you .
Ehsan
ehsanie4it@yahoo.com
ehsanie4it
Member
64 Points
114 Posts
Re: master page
May 08, 2012 09:06 AM|LINK
thank you
ehsanie4it
Member
64 Points
114 Posts
Re: master page
May 08, 2012 09:12 AM|LINK
is there any sample for beautiful masterpage models?
do you have ??
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: master page
May 08, 2012 09:16 AM|LINK
I don't have any, but you can find free HTML templates online. http://www.m6.net/resources/asp.net-web-templates.aspx has links to some.