Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在单元测试方法中访问 aspx 页面和 HiddenField。我需要将 aspx 页面和 HiddenField 作为参数传递给 .cs 文件中定义的另一个方法。这可能吗?
会话可用于存储整个页面内容,隐藏字段可以作为参数传递给单元测试方法。