CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 5/17/2007 1:37:59 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Moosdau
Asp.Net User
How could a master page control call a content page's function?5/17/2007 1:37:59 AM

0/0

Dear all:

For example:
1. In master page, place a button named "button1" .
2. Add three content page, ( add some code )
3. Run application, in content page 1, click button1, show "this is page1",  in content page2,
click button1, show "this is page2", and so on .

Besides, these code should be in every content page instead of in master page, because
actually action should be very complex, master can't predict everything.

Is this possible?  Thanks!

Adam.Kahtava
Asp.Net User
Re: How could a master page control call a content page's function?5/17/2007 12:16:36 PM

0/0

 Here's a great tutorial that may get you started: Creating a Common Toolbar in ASP.NET 2.0 using MasterPage, Delegate and Events.


-Adam Kahtava [http://adam.kahtava.com]
eniac0
Asp.Net User
Re: How could a master page control call a content page's function?5/17/2007 2:24:24 PM

0/0

The post above me says it all but if you're looking for a nice and easier way, you might want to take a look at this article. It basically says the same thing though: have your master page raise an event and the content page catch it. This worked great for me, i have a master page that has an exit button in the header, but the code of the exit button depends on where you are in my application, so each content page can do their own exit button code.

 http://www.odetocode.com/Articles/450.aspx

look at the "Master to content page interaction" section
 

Moosdau
Asp.Net User
Re: How could a master page control call a content page's function?5/18/2007 2:13:28 AM

0/0

To both you:

Thanks very much!

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


Free Download:

Books:
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
Beginning ASP.NET 2.0 AJAX: Written and Tested with the Final 1.0 Release Version of ASP.NET AJAX for ASP:NET 2.0 Authors: Wallace B. McClure, Paul Glavich, Scott Cate, Steve C. Orr, Craig Shoemaker, Steven A. Smith, Jim Zimmerman, Pages: 344, Published: 2007
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Networking with the IBM Network & Cluster Authors: Michael Hurwicz, Pages: 518, Published: 1985
System Sciences: 21st Annual International Conference : Papers. Authors: Institute of Electrical and Electronics Engineers, Computer Society, Pages: 0, Published: 1988
The Software Catalog: Microcomputers, Winter, 1990 Authors: Menu International Software, Pages: 0, Published: 1990

Web:
VS 2008 Nested Master Page Support - ScottGu's Blog Now that we've defined master pages to control our site's layout structure, we can start adding pages to the site. Let's create a new page that we'll call ...
ASP.NET 2.0 Master Pages - But how do I run JavaScript onLoad ... I prefer to only include global functions within the Master Page script. .... of the content page that you want the script to run in and call a subfunction ...
function in master page accesible from some content pages but not ... I can call this function fine from about half of my pages, but when i try to call it ... Print control to print the Content Page from a Master Page (ASP. ...
The Farrellel Universe - Dynamic Dot Net Master Pages In .NET 1.1, I could easily add a function call to the login page's tag. ... content control to change the Master Page to make a call to the function ...
Tip and Tricks: ASP.NET 2.0 AJAX 1.0 Extensions and Master Pages ... My requirement is that when the content page is active the back ground color of the link in the master page should change. I tried calling a function for ...
Using pageLoad in both Master and Content pages | Encosia NET AJAX pageLoad shortcut function on both master and content pages. ... I can’ t get either pageLoad() (expected since the composite page would have two ...
Use Master Page functions in a Content Page? Is there a way to call Master Page functions (i.e. classes or voids) .... My Content Pages can already reference the Master Page through the ...
ASP.NET Master Pages Overview When users request the content pages, they merge with the master page to produce ... NET page. For example, you can generate content for a Content control ...
Element-Enhancing Javascript in ASP.NET Master Pages - Stack Overflow How can I get content pages to call javascript code which is referenced in the ... of the master page, then add a asp:Content control on the content page ...
CodeProject: Inside Master Pages. Free source code and programming ... Calling functions from the master page. We can use the master pages not only as ..... but how to access control places in content page from master page ? ...

Videos:
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
Hidabroot אסטרולגיה Astrologia astrology עוד לפני אלפי שנים עסקו אנשי העולם העתיק בחקר Astrologia מידע הטמון בקרבי השמים אודות גורלו של האדם ואופיו. האיצטגנינות או בשמה המודרני אסטרולוגיה ה...
Philip Pocock 100 Days 100 Guests event (Day 63) Documenta X 1997 Philip Pocock speaking at Documenta X about hypercinema and the collabortative work produced in Uganda by Documenta X - A Description of the Equator ...
Exploratory Testing Google Tech Talks March 16, 2006 Jon Bach




Search This Site:










post installation issues

copy website stops working?

membershipprovider question

sigmapro draconis 5.0 beta testers needed

leftpane rightpane spacing

image not displayed in datagrid column...help me..(dnn)

windows authentication: auto login? (not repeated question!)

option to always expand all code sections

general question about page title

expert help needed

how create new tabs in the admin page when i create a new portal ?

am i designing this right?

new install, unable to login with admin or host

swap out menus

formatting datetime

status of roadmap ssl item

ttt gallery

unable to get authentication running. .net runtime errors

how do i build a website with asp.net v1.x using visual studio 2005?

could not add aspnet user to sql server.sql server does not exist or access denied.

requirement to have properties associated with profiles in separate xml with different format

windows vs sql authentication

email validation in asp.net

iis problem

image upload problem with fckeditor 2.2

fingerprint recognition

undersanding web application project in vs 2008

http error 403 - forbidden

setting default selected in databound dropdown list

interesting article...

 
All Times Are GMT