Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Default' does not contain a definition for 'TextBox2' a
Message
 
 
À
24/09/2009 23:24:46
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
Network:
Windows 2003 Server
Database:
MySQL
Application:
Web
Divers
Thread ID:
01426054
Message ID:
01426062
Vues:
27
>hi..
>it returns .. when compiled
>
>Error 1 Cannot implicitly convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.TextBox'. An explicit conversion exists (are you missing a cast?)

Sorry, it should have been

Textbox txt = (Textbox) this.FindControl("TextBox2");

...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform