Explain the difference between inline and code behind.



Explain the difference between inline and code behind...

Answer / Kaushal Naresh Tyagi

In ASP.NET, inline code is script embedded directly within an .aspx file (e.g., in Script tags or event attributes), while Code-Behind separates application logic into a separate .cs file for improved organization, maintainability, and security.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP Interview Questions

what is normalisation

1 Answers  


What are the event handlers of Application Object?

1 Answers  


When does the application OnEnd event handler fire? A. After every request for an application document, since web servers are stateless servers. B. As soon as there are no open connections to any application document. C. When the web server is stopped in an orderly fashion. D. Twenty minutes after the last request for a document in the application. E. When there are no application requests for the amount of time defined by the SessionTimeout variable.

1 Answers  


Define a class in css?

1 Answers  


Tell something about Active Server Pages?

5 Answers   Microsoft,


What is Querystring collection?

1 Answers  


Which is the default Scripting Language of ASP (server- side)?

2 Answers  


What is ascx cs?

1 Answers  


What is asp content?

1 Answers  


how to connect asp with sql server.......? Write some code for connectivity between sql server and ASP...

2 Answers  


Define application-scope?

1 Answers  


In which database is the information, such as membership, role management, profile, and Web parts personalization, stored?

1 Answers   MindCracker, Muthoot Group,


Categories