master page problem
-
Hi This is my 1st time using a master page in VisualStudio 2005. Im havin a problem with adding a control to the master page and it is not shown in the content page/s. i simply just dragged a button or textbox onto the masterpage and checked the content page but nothin is there. Could someone please help me out.
-
Hi This is my 1st time using a master page in VisualStudio 2005. Im havin a problem with adding a control to the master page and it is not shown in the content page/s. i simply just dragged a button or textbox onto the masterpage and checked the content page but nothin is there. Could someone please help me out.
Hey put one Content place holder and in then try to drag and drop the textbox and see it.Simply in the master page we cannot see any control.
Regards, Satips.:rose:
-
Hey put one Content place holder and in then try to drag and drop the textbox and see it.Simply in the master page we cannot see any control.
Regards, Satips.:rose:
-
Hey put one Content place holder and in then try to drag and drop the textbox and see it.Simply in the master page we cannot see any control.
Regards, Satips.:rose:
-
Hi This is my 1st time using a master page in VisualStudio 2005. Im havin a problem with adding a control to the master page and it is not shown in the content page/s. i simply just dragged a button or textbox onto the masterpage and checked the content page but nothin is there. Could someone please help me out.
If your working with master pages, the first page you should create for your site is the master page. By default, a single content place holder is created on the master page. If you add more than one content place holder, thats fine, but each of your content pages (e.g. form1.aspx / default.aspx) need to have the same amount of content place holders. That said, if you want all of your content pages to have access to "X" control(s), these controls should be placed on the master page itself, not on the content pages. The place holders on the master page are just that, containers that will be populated from the containers on each content page that inherits this master page. Hope this helps !
-
If your working with master pages, the first page you should create for your site is the master page. By default, a single content place holder is created on the master page. If you add more than one content place holder, thats fine, but each of your content pages (e.g. form1.aspx / default.aspx) need to have the same amount of content place holders. That said, if you want all of your content pages to have access to "X" control(s), these controls should be placed on the master page itself, not on the content pages. The place holders on the master page are just that, containers that will be populated from the containers on each content page that inherits this master page. Hope this helps !
Thanks for the reply. I have only placed the controls so far on my masterpage. The first content page that i created, that inherits from the masterpage, worked perfectly.but then i added another webform and specified that it must also inherit from the masterpage.. but its not showing the controls that i placed in the masterpage.
-
Thanks for the reply. I have only placed the controls so far on my masterpage. The first content page that i created, that inherits from the masterpage, worked perfectly.but then i added another webform and specified that it must also inherit from the masterpage.. but its not showing the controls that i placed in the masterpage.
I't hard to know whats wrong with out seing what you've done. Are you sure you did not add a control inside the content place holder on the content page? I'd be glad to have a look, just post a link to the dl. Or, if you want I can make a simple mock up for you to dl. I'm sure its something small you missed.
-
I't hard to know whats wrong with out seing what you've done. Are you sure you did not add a control inside the content place holder on the content page? I'd be glad to have a look, just post a link to the dl. Or, if you want I can make a simple mock up for you to dl. I'm sure its something small you missed.
all i did was make a master page. place 2 images and a menu control in the masterpage. Then added a new web form and selected the masterPage to inherit. It did not inherit the controls until I added a content placeholder to the masterpage.It then showed the controls in the webform.worked perfectly..but now i wanted to add another webform to the site.which i did, and also selected the masterpage but its not showing any of those controls from the masterpage. dont understand why it worked perfectly for the 1st page but not the 2nd. If u have a simple mock up for me i would greatly appreciate it.
-
all i did was make a master page. place 2 images and a menu control in the masterpage. Then added a new web form and selected the masterPage to inherit. It did not inherit the controls until I added a content placeholder to the masterpage.It then showed the controls in the webform.worked perfectly..but now i wanted to add another webform to the site.which i did, and also selected the masterpage but its not showing any of those controls from the masterpage. dont understand why it worked perfectly for the 1st page but not the 2nd. If u have a simple mock up for me i would greatly appreciate it.
-
all i did was make a master page. place 2 images and a menu control in the masterpage. Then added a new web form and selected the masterPage to inherit. It did not inherit the controls until I added a content placeholder to the masterpage.It then showed the controls in the webform.worked perfectly..but now i wanted to add another webform to the site.which i did, and also selected the masterpage but its not showing any of those controls from the masterpage. dont understand why it worked perfectly for the 1st page but not the 2nd. If u have a simple mock up for me i would greatly appreciate it.
You can download this one project, it was an example of using CSS, but you should be able to start the project, add pages, etc... Click my site link in the signature, and about three posts down you'll see the dl link to the project. If this does not help you, let me know.
-
Hi This is my 1st time using a master page in VisualStudio 2005. Im havin a problem with adding a control to the master page and it is not shown in the content page/s. i simply just dragged a button or textbox onto the masterpage and checked the content page but nothin is there. Could someone please help me out.
The contents needs to be placed outside the masterpage contenct place holder. The place holder is for displaying the items of the page using the master page. So place your textbox outside the placeholder and include the masterpage file in your actual page. Hope you are now clear with the masterpage concept... and remember there is no head html or body or form tag in pages with masterpage associated. Hope that helps!!!!
I was born dumb!! :laugh:Programming made me laugh:laugh:!!! --sid--