When you are working with ASP.NET Web Application, after you make any changes to codebehind file for these changes to be effected we need to recompile the codebehind file.During development stage this will sometimes pain you because you need to recompile the code every time you make any changes to the code.
There is a trick, by which we can achieve dynamic compilation of code where you can just change the code and there is no need to recompile the code again for these changes to get effected.This will decrease your development time too.
<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="AddObjects.aspx.cs" Inherits="Health_Mirror.addobjects" ValidateRequest="false" EnableEventValidation="false" EnableViewState="true" ClientIDMode="Static" %>
change this to
<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeFile="AddObjects.aspx.cs" Inherits="Health_Mirror.addobjects" ValidateRequest="false" EnableEventValidation="false" EnableViewState="true" ClientIDMode="Static" %>
you can see here we changed CodeBehind to CodeFile.
And Remember this is helpful only during the developement stage and not for production stage.