本文介绍了加载使用的System.Reflection一个ASP.NET 2.0 aspx页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在另一个加载一个独立的ASPX页面使用立单独的System.Reflection aspx页面?

Can I load an stand alone aspx page in another stand alone aspx page using System.Reflection?

我使用ASP.NET 2.0 Web站点的项目模型。

I am using the ASP.NET 2.0 Web site project model.

推荐答案

尝试使用BuildManager.CreateInstanceFromVirtualPath.示例用法:

Page p = BuildManager.CreateInstanceFromVirtualPath("~/Default.aspx", typeof(Page))

这回答这个具体问题,虽然,根据您的意见,我不知道这是你真正想要的。

This answers this specific question, although, based on your comments, I'm not sure that this is what you really want.

这篇关于加载使用的System.Reflection一个ASP.NET 2.0 aspx页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-09 23:31