hadi riyahiyan wrote
thanks
i think you are trying to say that when each visitor vist my site that vb code behind has to be compiled, is that right?
Not exactly. On the first visit to the website it will load slow because everything is dynamically complied at that time and put into grandular assemblies. Each subsequent load will be faster because it doesn't have to compile and load all the assemblies. So this dynamic compile (unlike classic ASP) only happens *one* time.
I will say though that if you change a file in /bin or modify the web.config it will cause a full recompile. If you just changed a VB file, then it would only recompile that granular assembly.
my load web site is realy slow ,what do you think ? is that because of that complieing (I mean the code behind the aspx pages)?
It's hard to say without knowing more information. It could be your host, your connection, the content your loading, a number of factors. But the compilation will only affect the first visit If your getting incredible slowness on each page request (> 10 seconds lets say) then I would start looking at your hosting environment as well as yourown connection.
Finally to answer your last question, if you want top put your files into single assemblies, you can by using the Web Application Project (WAP) model. Michael Washington has some great tutorials on it at http://www.adefwebserver.com
HTH,
Chris