dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: .net 2.0 w/ vb - master page accessing child page code behind

  1. #1
    Join Date
    Feb 2004
    Posts
    24

    .net 2.0 w/ vb - master page accessing child page code behind

    I've seen examples of how a child page can access stuff on a master page, but is there a way for the opposite?

    I have a "save" button on my master page and my child page has textboxes for data entry. If the user click's on the save button, is there a way to kick off a sub/function that is in the child page (which would contain the error checking and sql statements for saving the data entry)?

    I'm basically trying to avoid putting the same save button on every page.

    Any insight is much appreciated!

    Thanks!

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Take a look at the section, "Master Page To Content Page Interaction" in this article: http://www.odetocode.com/Articles/450.aspx
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Feb 2004
    Posts
    24
    Phil, thank you for the insight. I think the second option in that section would be appropriate in my application. Would something like this be appropriate:
    ContentPlaceHolder1.FindControl("sub")

Similar Threads

  1. VS.Net and Code Behind
    By Chaitanya Marvici in forum ASP.NET
    Replies: 6
    Last Post: 07-21-2003, 09:15 AM
  2. Will VB.NET be more stable than VB6?
    By Jason in forum .NET
    Replies: 125
    Last Post: 10-05-2002, 04:34 PM
  3. what software do I need to run ASP .NET page?
    By Syed Hameed in forum ASP.NET
    Replies: 2
    Last Post: 11-05-2001, 04:32 PM
  4. Replies: 120
    Last Post: 08-06-2001, 12:50 AM
  5. Replies: 0
    Last Post: 06-18-2001, 06:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center