Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP !http://forums.asp.net/t/391600.aspx/1?Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Thu, 13 Nov 2003 04:44:15 -0500391600391600http://forums.asp.net/p/391600/391600.aspx/1?Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Hi All, Ive seen an article in www.asp.net site today &quot;New Code Compilation Features in ASP.NET Whidbey&quot;. As per this article, its suggested to write the C# code also in ASPX file itself. So that both will be compiled at runtime during development. Since Intelisence is supported in HTML View itself, &lt;script runat=server language=C#&gt; can be used to write our codebehind code. Atleast by making the Code seperated from HTML, ASPX pages now Dont look messy with bot language code and html code as were in ASP/JSP. But, by introducing Intellisence, VS.NET is mixing it both again. Y is this. I agree that there it increases the development time. But, again like ASP/JSP, ASPX pages will also contain mixup of code and go upto thousands of lines. Yours, Sankar.B Mascon Mastercard, Chennai, India 2003-11-12T07:51:11-05:00391603http://forums.asp.net/p/391600/391603.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! First of all are you using Whidbey already? If this is not the case, don't try the tricks in the older versions of VS.NET (2002/2003), it won't work... If you have Whidbey already, please remark it'only <b>alpha</b>, so problems will occur for sure! 2003-11-12T07:54:40-05:00391609http://forums.asp.net/p/391600/391609.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Hi, I dont have Whidbey / Im not trying out the new things in VS.NET 2003. I just seen the artilce &quot;New Code Compilation Features in ASP.NET Whidbey&quot; in www.asp.net which states that we can do the codebehind coding in the aspx page itself (With the Intellisence support provided in Whidbey for ASPX page itsel) if we dont want to compile each time (like what we do in VS.NET 2002/2003 for each and every change we do in the codebehind). But, still if we want to use the Codebehind for all our ASPX pages, then, we Loose the &quot;Advantage of Runtime Compilation of ASPX &quot; (which will have the language code block inside aspx page itself in the &lt;script runat=server&gt;&lt;/script&gt; block). But, if we want go with the Codebehind technology as we do now, we will be &quot;Loosing the Advantage of Runtime Compilation&quot;. As per the article, we need to Compile (Build/Rebuild) the application each and every time even when we do a small change in the Codebehind file. Since ive no chance of getting Whidbey now (since download is not there) Im asking u people who are trying it now whether We can use Codebehind still using the Advantage of Runtime Compilation.i.e. no need to compile (Build/Rebuild the application) for each and every change we do in the codebehind file ? Yours, Sankar.B 2003-11-12T08:07:28-05:00391612http://forums.asp.net/p/391600/391612.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Hi, Ref: http://msdn.microsoft.com/asp.net/whidbey/default.aspx?pull=/library/en-us/dnaspp/html/codecompilation.asp &quot;One of the advantages of ASP.NET Web Forms is that because of dynamic compilation, you can easily make changes to an .aspx page, save the page, and the page is updated, without the need for a recompile (as long as you're not using code behind)&quot; This will def. lead to use Single file concept again like ASP/JSP which will have both code and HTML mixed up and having a messy pages with thousands of lines. If Dynamic Compilation is supported by anyway when using Codebehind also, then, it will be useful and still makes ASP.NET applications having HTML code seperated from its coding page. Yours, Sankar.B 2003-11-12T08:14:31-05:00391623http://forums.asp.net/p/391600/391623.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! There is acodebhind support in Whidbey also, but it will work in a differnt way. It use the new partial code feature for the codebhind. 2003-11-12T08:49:35-05:00391689http://forums.asp.net/p/391600/391689.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Hi All, My concern as per the article is &quot;Advantage of Dynamic Compilation&quot; and &quot;ASPX Intellisence&quot; in Whidbey will make future development in ASPx Pages mixed up with Code and HTML tags, which is not done so by the ASP.NET developers now with VS.NET 2002/2003. Whether &quot;ASP.NET Developers can Utilise the Advantage of Dynamic Compilation in Whidbey with Codebehind Technologoy Also ?&quot; i.e: If I need Dynamic Compilation, I need to develop all in a single file i.e. Code and HTML / ASP:Tags in aspx page itself. But, if i dont want to mixup both HTML / ASP:Tags and Code in ASPX page itself and go ahead with Codebehind Technology, I cant take advantage of &quot;Dynamic Compilation in Whidbey (Since We need to Compile and Test the changes made in codebehind now for each and every change we do in Codebehind). Even now also in VS.NET the Dynamic Compilation is there. If we embed the Code in script tag and HTML/ASP:Tags in the ASPX page itself, we dont have to compile and test the page for each and every change we do in the script block. But, there is no support for Intellisence in ASPX, so no developer is developing in this way. But, since Intellisence support is given in ASPX page itself in Whidbey, everyone will start coding in the same page and slowly &quot;Codebehind Concept&quot; will go away and again ASP.NET pages will have both HTML and Code mixed up in the same page as we did these many years in ASP/JSP. This is my concern. If by anyway &quot;Dynamic Compilation' is supported even if we do coding in the Codebehind page, itll be better. Yours, Sankar.B 2003-11-12T11:22:09-05:00391698http://forums.asp.net/p/391600/391698.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! There is a new folder for making Dynamic Compilation better. In Whidbey there is a \Code folder where you can put all of your source codes. The code in the \Code folder will be automatically compiled to assemblies. So you can deploy your solution with the source code to the server. You can change the code located in the \Code folder on your server, and it will be automatically compiled :) 2003-11-12T11:36:35-05:00391723http://forums.asp.net/p/391600/391723.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Hi, Yes. Ive seen in one of the PDC articles, the \Code folder. 1. Is this is the default place (\Code folder) where we need to keep our Codebehind pages and our Custom Classes ? 2. If we keep our Codebehind files/ Custom Classes/ Partial Classes in this default folder (\Code) and if we do any change in these files and without Compilation (Build/Rebuild the Solution), if we run the ASPX page, will the changes done in these files will be reflected ? Yours, Sankar.B 2003-11-12T12:30:13-05:00391726http://forums.asp.net/p/391600/391726.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Whidbey supports both inline and code-beside with no problem. There are so few differences (both have intellisense finally, and neither requires extra declarations) that its simply a style issue. Both techniques can be compiled dynamically or be pre-compiled. See <a href="http://authors.aspalliance.com/paulwilson/articles/?id=19">my article</a> for actual code-beside syntax and more details. 2003-11-12T12:35:54-05:00391745http://forums.asp.net/p/391600/391745.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! &gt;1. Is this is the default place (\Code folder) where we need to keep our Codebehind pages and our Custom Classes ? No. &gt;2. If we keep our Codebehind files/ Custom Classes/ Partial Classes in this default folder (\Code) and if we do any change in these files and without Compilation (Build/Rebuild the Solution), if we run the ASPX page, will the changes done in these files will be reflected ? All files in the \Code folder will be compiled after changes. You don't need to manually compile your code. 2003-11-12T12:57:11-05:00391753http://forums.asp.net/p/391600/391753.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Hi, Tx. One more doubt. So, does this mean, I can do the following: 1. A common shared folder can be used to place the Project files 2. More than one developer can open the same project from their pc's 3. Each developer can do changes in different code-beside pages (.cs/.vb files in \Code folder which is in a shared network folder) 4. Just each developer ONLY SAVE the .cs files and 5. If they Run the respective ASPX pages from their pc's will the changes done in the different .cs files will be reflected ? Yours, Sankar.B 2003-11-12T13:10:13-05:00391801http://forums.asp.net/p/391600/391801.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Yes it would work but I should recommend you to use VSS in a project. Its important to know that this is only the Alpha bits. Existing sites can simply be opened from their location. There is multiple ways to access a Web site. (File system, IIS, FTP etc) The project file is removed because of making it easier to work in a project. The project file will not be block if we use VSS, because there is no project file, we can now use other development tools to work whit our project. 2003-11-12T13:52:07-05:00392638http://forums.asp.net/p/391600/392638.aspx/1?Re+Codebehind+Scrapped+Again+HTML+and+Language+Code+are+Mixed+up+like+ASP+JSP+Re: Codebehind Scrapped ! Again HTML and Language Code are Mixed up like ASP / JSP ! Hi, Really cool. I was expecting this in vs.net 2003 itself. Since i used to work in JSP proj. also, there JRun/Resin webservers will compile .java files automatically. Tx its there now in Whidbey. Yours, Sankar.B 2003-11-13T04:44:15-05:00