Click here to Skip to main content
       

.NET Framework

 
GeneralRe: Build Output Question PinmemberKevin Marois4-Jan-13 6:20 
GeneralRe: Build Output Question PinmvpRichard MacCutchan4-Jan-13 6:58 
AnswerRe: Build Output Question PinmvpAbhinav S4-Jan-13 6:20 
AnswerRe: Build Output Question PinmvpSandeep Mewara4-Jan-13 6:28 
QuestionNullable(Of Decimal) type variable is throwing exception "Nullable object must have a value." Pinmemberindian14327-Dec-12 18:14 
AnswerRe: Nullable(Of Decimal) type variable is throwing exception "Nullable object must have a value." PinmemberEddy Vluggen28-Dec-12 8:41 
QuestionC# statement var indirect val [modified] Pinmembercodejuggler927-Dec-12 6:33 
AnswerRe: C# statement var indirect val PinmvpDave Kreskowiak27-Dec-12 7:23 
No. There's nothing like that in .NET at all. C# is not an interpreted language so it's impossible to evaluate a string at run-time and treat it as code. It has to be compiled in order to work.
 
You've have to use Reflection to get the control using a string like that and get it's value. Though, you may want to think twice about doing this at all as Reflection isn't exactly speedy to use.
 
The other problem is that are you seriously calling your controls Textbox1, Textbox2, ...?? That's horrible as you have no idea what each textbox is used for.

GeneralRe: C# statement var indirect val Pinmembercodejuggler927-Dec-12 7:58 
GeneralRe: C# statement var indirect val PinmvpDave Kreskowiak27-Dec-12 8:47 
QuestionNeeded: PGP source code PinmemberGregory.Gadow26-Dec-12 5:30 
AnswerRe: Needed: PGP source code PinmemberGregory.Gadow26-Dec-12 5:35 
QuestionPrivate byte is being increased continuously without any request Pinmembernishantenet23-Dec-12 20:14 
AnswerRe: Private byte is being increased continuously without any request PinmvpDave Kreskowiak24-Dec-12 5:10 
AnswerRe: Private byte is being increased continuously without any request Pinmemberjschell24-Dec-12 7:57 
QuestionMSI not taking/Installing .NET framework Pinmembersjs4u19-Dec-12 17:25 
AnswerRe: MSI not taking/Installing .NET framework PinmvpDave Kreskowiak19-Dec-12 18:55 
QuestionEntity Framework is Updating other column also Pinmemberindian14319-Dec-12 15:51 
QuestionUnable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 [modified] Pinmembersr15918-Dec-12 23:26 
SuggestionRe: Unable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 PinmvpRichard MacCutchan18-Dec-12 23:52 
QuestionCustomer Hacking System Time PinmemberKlockness18-Dec-12 4:33 
AnswerRe: Customer Hacking System Time PinmvpRichard MacCutchan18-Dec-12 6:46 
GeneralRe: Customer Hacking System Time PinmemberKlockness18-Dec-12 10:25 
AnswerRe: Customer Hacking System Time PinmemberRichard Deeming18-Dec-12 7:32 
GeneralRe: Customer Hacking System Time PinmemberKlockness18-Dec-12 10:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 12 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid