0

We have developers who have permission editing default.aspx.vb, and other people can only edit default.aspx. I found today that we have page_init event exist in both of our aspx and aspx.vb files (with different code in them).

The website is still working as it supposed to be, but I'm just wondering if there were any drawbacks of doing this?

Thanks in advance.

4

1 回答 1

1

它有效,它只是让应用程序更难在这么多地方使用代码来维护。最好将 aspx 文件用于演示,将 .vb 文件用于逻辑。

于 2013-06-26T03:57:31.643 回答