CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 6/13/2007 6:23:55 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 47 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
matmc
Asp.Net User
MasterPages and <form>s6/13/2007 6:23:55 AM

0

Hi All,

I want to have an asp:button control on my MasterPage. Fine, but it needs to be in a <form> tag with a runat="server", right? Fine. But there are several content pages that I want to send data in different methods (i.e. post or get). Fine, so I tried to have (essentially) two forms on each page, one just for the button, and onther in the content page for whatever it wants to do. But of course, you can only have one form per page. See my problem?

Thanks in advance.

Mat

addie
Asp.Net User
Re: MasterPages and <form>s6/13/2007 9:16:50 AM

0

If I understood your problem - you can live with having a single form on the  master page (in which you place the button). Now in the content pages you can have your controls and make them send data.

Perhaps the only thing that you need to be careful about is the validation group for the controls.

In one of my projects I have a login section defined in the master page (with text boxes and a button, unless you log in you see those). In one of the content pages (using that master page) the users are allowed to register themselves (controls and sending data), hope your scenario is something similar

 

Amanda Wang - M
Asp.Net User
Re: MasterPages and <form>s6/15/2007 2:10:55 AM

0

Hi Mat,

You could drag a panel control to the master page, then you could add the button control in the panel.

Like this: this.Panel2.Controls.Add(btnTest);


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Adobe Acrobat 8 PDF Bible Authors: Ted Padova, Pages: 1085, Published: 2007
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007

Web:
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... We can use the @ Page directive and the web.config to specify master page files for our web forms, but sometimes we want to set the master ...
Master pages and forms - .NET ASP Master pages and forms. Get answers to your questions in our .NET ASP forum.
Master pages and forms Talk about Master pages and forms. ... Master pages and forms. Do you put your form on the master page or in each individual page? I use a ...
Applying master pages to forms whose number of pages vary Two options are available for applying master pages to forms whose number of pages vary. The nature of the type of form should dictate which of these ...
Master Pages In ASP.NET 2.0 Jul 18, 2005 ... You’ll only need to write the common pieces once - in the master page. A master page can serve as a template for one or more web forms. ...
Master pages & forms authentication & no graphics showing? - .NET ASP Master pages & forms authentication & no graphics showing?. Get answers to your questions in our .NET ASP forum.
Master pages & forms authentication & no graphics showing? Talk about Master pages & forms authentication & no graphics showing? ... I'm using forms authentication along with Master pages -- my ...
master pages +forms - ASP.NET Forums I am using a master page for my site. and therefore obviously I have contentPlaceHolders in my other pages. I want to process the forms ...
Form Elements in ASP.NET Master Pages and Content Pages - Stack ... I have never had form elements in both my master and content pages, I tend to have all the forms in the content where relevant. ...
Web forms with master pages not displaying in other browsers ... I have designed a few web pages which have a master page. When I open these forms in IE they are working fine and well. ...

Videos:
Phil Calvin of Sitemasher - Fundfindr Interview Phil Calvin, Sitemasher's CTO, gives a brief demo of the Sitemasher Studio to Fundfindr. In this video Phil takes you through different areas of Site...












stubborn sitemapnode refuses to update

trying to get the user.identity.name in the master page code

master page - detail page relationship - capturing events

theming webparts

popup window using .net menu control

virtualpathprovider question

linkedstylesheets missing from ipageheader in beta 2.

weird error--code 0, expected ')'

setting application-wide master page

how to make the menu item fully clickable (not just the text)

treeview with checkboxes not holding their checked state

help...how to deal with link.href in master page with resource file

master page and content place refresh

does multiview support client side view switch?

loss of menu control on site

manually loading an xml file and binding it to an asp:menu

another menu/sitemap question

problems with sitemap

how to display root menu items in 2 rows using asp.net menu control?

sitemap problem

css styles and skins

best way to handle banner on master page

how to implement a particular type of menu

knowing which page you're on with a wizard control

.htm docs and “contentplaceholder”

menu problem

masterpagefile="~/masters/ie7ff2.master"

theme not applying correctly

treeview question

masterpagefile in web.config

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT