CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 10/24/2007 12:54:12 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
mike1978
Asp.Net User
Updating a masterpage property10/24/2007 12:54:12 AM

0/0

OK, here is what im trying to do. Lets say I have a button on an asp page and when that button is fired i want it to update a label control nested in a masterpage. I know this is pretty basic but im new to this and cant find anything on previous posts. thanks for the help.

Googzie
Asp.Net User
Re: Updating a masterpage property10/24/2007 1:21:01 AM

0/0

In your master page you can have a property to set or get the value of the Label

Public string LabelText

{

get{return myLabel.Text;}

set{MyLabel.Text=value;}

}

 

In you aspx page set the value of the label after the button is clicked.

Page.Master.LabelText=XXXXXX

 if this is helpful mark the post as answered.

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Adobe Creative Suite 3 Web Premium All-in-One Desk Reference For Dummies: All-in-one Desk Reference for Dummies Authors: Damon Dean, Andy Cowitt, Jennifer Smith, Christopher Smith, Pages: 882, Published: 2007
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Expert C# 2005 Business Objects Authors: Rockford Lhotka, Pages: 668, Published: 2006
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Dreamweaver CS3 For Dummies Authors: Janine Warner, Pages: 434, Published: 2007
Programming Microsoft Web Forms Authors: Douglas J. Reilly, Pages: 303, Published: 2005
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007

Web:
Updating a masterpage property - ASP.NET Forums Updating a masterpage property. Last post 10-23-2007 9:21 PM by Googzie. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Egil.dk » Blog Archive » Updating a control in a MasterPage from a ... Jul 5, 2007 ... I wanted an elegant way of updating the status label in my MasterPage ... Create a public property on the MasterPage for each access to the ...
Centralize Master page and Alternate CSS settings - Sander's Blog Aug 29, 2008 ... To update the Masterpage you can easily tell the current page to use ... 3th: It writes a link from its own pubic property DefaultURL, ...
ASP.NET Library - Articles - Access Master Page controls from the ... MasterPage Public Property MyText() Get Return Label1.Text End Get Set(ByVal value) ... MyText ' Update the Master Page's Label CType(Page.Master, site). ...
Less Than Dot - Wiki - ASP.NET: Access Master Page controls from ... Master property, and then we need to cast the Master Page to the type of Master we ... MyText; ' Update the Master Page's Label; CType(Page.Master, site). ...
Blue Cylindric Crashes: Updating Keywords Masterpage from Content Page End Set End Property Update Control from content page. Dim myMaster As MasterPage = CType(Me.Master, MasterPage) myMaster.MetaData = something.tostring ...
Points to share: Deploying and applying a master page as a feature ... Update(); }. / // /// Restores the original masterpage that was on the site when ...
Feature to Install a Custom Master Page The event handler will set the properties when the Feature is activated ... CustomMasterUrl = "/_catalogs/masterpage/default.master"; CurrentWeb.Update(); ...
How to update MasterPage control properties from content pages ... How to update MasterPage control properties from content pages. Rate It (1). Last post 04-07-2006 4:30 PM by suegooge. 2 replies. ...
Master Pages :: Programmatic Interaction Between a Content Page ... Updating the Master Page After Adding a New. Product. Now that we know how to invoke a master page's public properties and methods from a ...




Search This Site:










master page compiling

treeview

staticselectedstyle problem

problem with hover in a menu

treeview menu

how to turn on and off master page

how to indicate separator in "site map"

head section and the master page

treeview, last selected leaf

java script disabling my stylesheet :(

css and content pages

master pages + menu control

menu control

treeview with buttons

select node in tree view after bind

gridview disappears from viewsource html rendered code

content not appearing in master page

wizard control with a horizontal sidebar

custom errors with masterpage question

extend/implement masterpage

meta tag problem

overriding methods of master page code-behind

cross postback

design of masterpage

https site map nodes

jumbled controls on master page

onblur action - no longer working (textboxes)

how to show html pages inside a content placeholder

can we use user controls in master page ?

file reference problem in master page

  Privacy | Contact Us
All Times Are GMT