
March 23rd, 2002, 11:27 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
Using HTML Script vs. Code Behind
<i><b>Originally posted by : Julia Lerman (jlerman@thedatafarm.com)</b></i><br /><br />In all of the examples I have been using thus far with ASP.Net (QuickStarts, ASP.Net Tips, Tutorials & Code) there is extensive use of SCRIPT in html, rather than putting the functionality in the code-behind file.<br /><br />I can't seem to find a discussion in any of my resources of when you would want to use one over the other. I had somehow gotten the impression that one would put all of their code in the code-behind. These examples show me that that is not completely "TRUE" or necessary, but they seem also to show that there must be other very good reasons NOT to use code-behind. I've done a bunch of ASP/HTML web stuff in the past so this isn't completely new to me. Plus I have been working in VB for 5 years - so I'm very used to just doubleclicking on a form which of course, now leads me to code-behind. So I am totally confused about this. I think it's going to be one of the big paradigm shifts for me! Is there a road map about the use of one over the other? Does anyone know why it is that the examples would do the html scripting instead of code-behind? Is it just as a learning hook maybe?<br /><br />Thanks much<br />jlerman@thedatafarm.com
|