Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User control call page method?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
User control call page method?
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01374382
Message ID:
01374382
Vues:
69
I have several user controls (.ASCX) that exist on a page.

In each, when an event happens (sqldatasource.inserted), I need to refresh the data in a control on the main (parent) page.

Thinking in terms of programming practices commonly available for the last 20 years, I thought I could just get a reference to the page (the containing object) and call the method I need. Yeah. Right.

Google searches indicate that that obviously is too simple (you can't do things easily in .NET of course), and I have to write a pile of code somewhere to (re)define my page class or something to that effect.

Can someone explain this to me in some rational terms please?

This is in VS2005 in VB.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform