Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

Difference between src and Code-Behind

With the 'src' attribute, the source code files are deployed and are compiled by the JIT as needed.
Though the code is available to everyone with an access to the server (NOT anyone on the web), this method is preferred as it does away with the compilation of the DLLs.

'CodeBehind' attribute just has the VS.NET associate the code file with the aspx file. This is necessary since VS.NET automates the pre-compiling that is harder by hand.

Due to this the 'Src' attribute is done away with having only a DLL to be deployed enhancing the protection level even though it can be decompiled.

Src: is a way mention the name of the code-behind class to dynamically compile on the request for a page.

Code-behind: is the logic written behind the UI design file. It specifies the name of the compiled file that contains the class. Code-behind attribute is only used for.Net. 

Do you know that?

Freelance work is the fastest growing sector of the labor market Next