.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

Describe the difference between inline and code behind - which is best in a loosely coupled solution

Posted By :Muthu     Posted Date :November 02, 2010    Points :10   Category :ASP.Net 
ASP.NET supports two modes of page development: Page logic code that is written inside runat="server"> blocks within an .aspx file and dynamically compiled the first time the page is requested on the server. Page logic code that is written within an external class that is compiled prior to deployment on a server and linked ""behind"" the .aspx file at run time.

You can also find related Interview Question to Describe the difference between inline and code behind - which is best in a loosely coupled solution  below: 

Describe the difference between inline and code behind?

  
Inline code written alond side the html in a page.Code-behind is a code written in a separate file and referenced by the .aspx page. (More...)

Difference between imperative and interrogative code.

  
There are imperative and interrogative functions and I think they are talking about that. Imperative functions are the one which return a
value while the interrogative functions do not return a value. (More...)

What's the difference between code-based security and role-based security? Which one is better?

  
Code security is the approach of using permissions and permission sets for a given code to run. Role-based security most of the time involves the code running with the privileges of the current user. Both are equally better. Depending on the deployment type security can be implemented. (More...)

Difference between server-side code and client-side code.

  
Server-side code executes on server side. Client-side code executes in the client's browser. (More...)

Describe the difference between a list and a library in sharepoint?

  
Lists are collections of metadata or columns, that can have attached documents. Libraries are collections of documents (Excel, InfoPath, Word, etc.) plus optional metadata. (More...)

What's the difference between and XML documentation tag?

  
Single line code example and multiple-line code example. (More...)

Describe the advantages of writing a managed code application instead of unmanaged one. What's involved in certain piece of code being managed?

  
"Advantage includes automatic garbage collection,memory management,security,type checking,versioning
Managed code is compiled for the .NET run-time environment. It runs in the Common Language Runtime (CLR), which is the heart of the .NET Framework. The CLR provides services such as security,
memory management, and cross-language integration. Managed applications written to take advantage of the features of the CLR perform more efficiently and safely, and take better advantage of developers existing expertise in languages that support the .NET Framework.
Unmanaged code includes all code written before the .NET Framework was introduced-this includes code written to use COM, native Win32, and Visual Basic 6. Because it does not run inside the .NET environment, unmanaged code cannot make use of any .NET managed facilities."
(More...)

What is difference between Code access and role based security?

  
Code security is the approach of using permissions and permission sets for a given code to run. The admin, for example, can disable running executables off the Internet or restrict access to corporate database to only few applications.

Role security most of the time involves the code running with the privileges of the current user. This way the code cannot supposedly do more harm than mess up a single user account.

Neither is better. It depends on the nature of the application; both code-based and role-based security could be implemented to an extent.
(More...)

Difference between native code, machine code and assembly code

  
Native code:- This term is sometimes used in places where machine code (see above) is meant. However, it is also sometimes used to mean unmanaged code. Unmanaged code is the kind of code that requires you to manually allocate and de-allocate memory, sometimes causing memory leaks (when you forget to de-allocate) and sometimes segmentation faults (when you de-allocate too soon).

Machine code:- This is the most well-defined one. It is code that uses the byte-code instructions which your processor (the physical piece of metal that does the actual work) understands and executes directly. All other code must be translated or transformed into machine code before your machine can execute it.

Assembly code:- This term generally refers to the kind of source code people write when they really want to write byte-code. An assembler is a program that turns this source code into real byte-code. It is not a compiler because the transformation is 1-to-1. (More...)

Difference between imperative and interrogative code.

  
imperative :Does not return value
interrogative :Return Value
(More...)

Difference between sandbox solution and farm solution

  
SharePoint 2010 introduces new feature sandbox solution.Here are major difference between sandbox solution and farm solution.

1.The scope of sandbox solution is site collection where as The scope of farm level solution is farm level.

2.Sandboxed solutions, which are hosted in the SharePoint user code solution worker process (SPUCWorkerProcess.exe)Whereas Sandboxed solutions, which are hosted in the SharePoint user code solution worker process (SPUCWorkerProcess.exe)

3.Sandbox run code that can only affect the site collection of the solution.The process runs under a CAS policy that restricts programmatic access to any resource outside the sandbox.Whereas Farm Solution run code that can affect the whole farm.

4.Sandbox Never restart the IIS application pool.If you run any code it will affect only the site collection of the solution. Whereas If you deploy any feature or retract any feature the whole application pool got recycled in farm solution.

5.Sandboxed solutions are uploaded and activated whereas Farm solutions are installed and deployed.

6.we can’t create VISUAL web parts in Sandbox solutions whereas VISUAL web parts can be created in farm solution.

7.When the Sandboxed Solution property is set to True, selecting Build\Deploy Solution deploys the solution to the site collection Solution Gallery.whereas When the Sandboxed Solution property is set to False, selecting Build\Deploy will deploy the solution to the Farm Solution Gallery. (More...)

SharePoint runs sandboxed solution code in which process?

  
SharePoint runs sandboxed solution code in process SPUCWorkerProcess.exe (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend