Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Custom control in the page
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Using Custom control in the page
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01296539
Message ID:
01296539
Vues:
55
Hi everybody,

I have a page that tries to instantiate a custom button class using the following code:
 UCD_volunteerBtn Vol;
                        Vol = (UCD_volunteerBtn)Page.LoadControl("/UCD/volunteerBtn.ascx");
                        Vol.PersonID = (int)P.PersonID;
                        Vol.IsEvent = false;
                        Vol.Program = Prog;
                        Vol.PSession = PrgSesssion;
                        Vol.CssClass = "nav" + Theme.CSSPrefixClass;
It gives me this error:

Error 1 The type or namespace name 'UCD_volunteerBtn' could not be found (are you missing a using directive or an assembly reference?) C:\Development\Visual Studio 2005\WebSites\FCFront\UCD\EventProgramMod.ascx.cs 105

I found the class for this button, but I'm not sure what should I do.

Thanks a lot in advance.

Also why when I build the solution, it succeed, but when I re-build it gives me the above and bunch of other related errors?
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform