问题描述
我想使用c#创建一个ASP页面(Web表单),即:
当我按下按钮时,它将创建新页面.
我已经有了该页面:将其称为ExplorForumTopics
ExplorForumTopics xx =新的ExplorForumTopics();
url是{Page.Response.Redirect(〜/ExplorForumTopics.aspx");},但是这种方式行不通.
我的问题是:我可以从webform(ExplorForumTopics)创建新实例吗?
???如何显示?
更多信息:
我写了这个问题之后,
我看到了新的ASP页面,这是
http://www.codeproject. com/answers/65395/how-to-create-an-asp-net-page-using-csharp-code.aspx [ ^ ]
所以我可以做同样的事情吗?为每个按钮按下创建新页面吗?
非常感谢!!
i want to create an asp page ( web form) using c# , that is to say:
when i press down button it will create new page.
i have the page already: called it ExplorForumTopics
ExplorForumTopics xx = new ExplorForumTopics();
the url is {Page.Response.Redirect("~/ExplorForumTopics.aspx");} , but this way does not work right.
my question is: can i create a new instance from webform (ExplorForumTopics )
??? how to show it ?
more info:
after i wrote this question,
i saw new asp page , this is
http://www.codeproject.com/answers/65395/how-to-create-an-asp-net-page-using-csharp-code.aspx[^]
so can i do the same thing? create new page for each button press down?
thanks a lot !!
推荐答案
Response.Redirect("ExplorForumTopics.aspx");
要转到ExplorForumTopics.aspx页面,如果不能,则需要发布尝试执行此操作时遇到的错误.
To go to the ExplorForumTopics.aspx page, if you can''t then you need to post the error you get when you try to do this.
这篇关于如何使用C#代码创建一个asp.net页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!