Define In- line code and Code-behind.In-line code: - This code is embedded directly within the ASP.NET page. - The code is written along side of the html page.
Code-behind: - It refers to code for ASP.NET page which is contained within a separate class file. - It allows a clean separation of HTML from the presentation logic. - This code is written in a separate file and referenced by the .aspx page.
|