Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Default' does not contain a definition for 'TextBox2' a
Message
 
 
To
24/09/2009 23:24:46
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
Network:
Windows 2003 Server
Database:
MySQL
Application:
Web
Miscellaneous
Thread ID:
01426054
Message ID:
01426062
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform