Can we write all the control events in a seperate class file in different layer rather than in code-behind of web-page?

StackOverflow https://stackoverflow.com/questions/8149558

Can we write all the control events in a seperate class file in different layer rather than in code-behind of web-page ? Kindly help.

Thanks in advance.

有帮助吗?

解决方案

Yes you can. One way of doing that is to make a partial class with the same name as your codebehind file and use that to contain the events.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top