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
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01374382
Message ID:
01374500
Vues:
16
EUREKA (maybe)!!

At least intellisense recognizes the method and the site builds!

Now to implement the methods on the page I really need!

Thanks Paul!

>>
>>First of all, thanks for your help!
>>
>>Problem with trying your interface approach is that it appears that (looking at your example) I still have to inherit my _Default page when declaring the interface (same problem).
>
>Try this:
>
>If you don't have an App_Code folder already, right-click on the project and select Add ASP.NET Folder, then App_Code. Right-click on App_Code and create a new class. Let's call it Interfaces. Modify the class to include a namespace and turn it into an interface definition, ex:
>
>
>namespace MyApp.Interfaces
>{
>    public interface IMyWebPage
>    {
>        void UpdateText(string newText);
>    }
>}
>
>
>
>Namespace MyApp.Interfaces
>   Public Interface IMyWebPage
>      Sub UpdateText(ByVal newText As String)
>   End Interface
>End Namespace
>
>
>Now go back to your user control - you should be able to type: MyApp.Interfaces and see Intellisense pop-up for the IMyWebPage interface.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform