Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 20th, 2011, 03:58 AM
Registered User
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing content control

In chap18 I put a control (textbox1) in the site.master page.
In the default page I have a button and by clicking in the code I will change the content of the textbox1 in the site.master page.
Is this possible, I have'nt no answer?
Exsist there something like global-public variables in the web envirronnement?
 
Old March 20th, 2011, 07:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Yes, you can access controls in the Master Page from a content page, as explained here: http://msdn.microsoft.com/en-us/libr...v=VS.100).aspx

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically changing the <object> element's loaded content codeexploiter BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 3 October 5th, 2009 08:14 AM
WSS 3.0 changing various document's content!? SAgosto SharePoint Development 4 January 15th, 2008 04:27 PM
changing content depending on combo box value bewise PHP How-To 1 September 13th, 2006 11:57 AM
Dynamically Changing the content of a table cell asdasd Javascript 4 February 18th, 2005 01:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.