According to the question: Is C# code faster than Visual Basic.NET code? Was said that C# and VB.NET generates the same CLR code at the end.
But in the case when I'm using codebehind and inline code, are there different performance (ignoring the language used)?
Inline code can require compilation the first time the request is made. After that (or if it's precompiled), there's absolutely zero difference between them.
By the way, even if it requires compilation, the speed difference should be insignificant as ASP.NET will have to compile a source file anyway. The difference will come down to a adding a few lines of code in a large source file!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With