可以放在一起,不过最好单独放在一个文件中。
把javascript代码放在.js文件中,然后再.aspx文件中写入
<!--#include file="*.js" -->
还有,javascript和.aspx数据交换的方式与.asp不太一样,到时得费点劲