re:
!> Actually SRC attribute has been used because i m using user controls (.ASCX)
!> files in my ASPX files. i don't think i can remove the SRC attribute.
Please review this MSDN article on the ASP.NET Compilation Tool :
http://msdn2.microsoft.com/en-us/library/ms229863(VS.80).aspx
It will help you understand what happens a bit more.
Pay close attention to the table included in the "Compiling an Application for Deployment" section,
which details the file types and what the compiler does to each of them.
Basically, when the -u option is included :
Static file types are copied to the target location, with their relative places in the directory structure preserved.
..ascx, .aspx, and .master files are split into markup and source code, which includes code-behind files.
Source code is compiled into assemblies, with names that are derived from a hashing algorithm,
and the assemblies are placed in the Bin directory.
New files with the same name as the source files are created to
contain the markup and placed in the corresponding output directories.
When the -u option is omitted, there's different behavior:
..ascx files are split into markup and source code.
Source code is compiled into assemblies and placed in the Bin directory,
with names that are derived from a hashing algorithm. No markup files are generated.
Read the article to see which option is best for you.
You do *not* have to include source files when you pre-compile an application.
All you need to do is pre-compile your application and copy
the compilation's results from the target directory to your server.
You do *not* copy any of your original files; only the results of the compilation.