1

サイトがプリコンパイル済みの ASP.net サイトである場合、.aspx および .aspx.cs または aspx.vb ファイルをサイトの新しいディレクトリに追加し、それらのページをその場で動作/コンパイルさせることは可能ですか?

それとも、これらのファイルをプロジェクトに追加し、サイトを再公開して、新しい bin フォルダーをプッシュする必要がありますか?

4

3 に答える 3

1

You can add non-precompiled pages to a precompiled web site. I have just installed a site that does exactly that - it is a precompiled site with a remote admin tool that adds some custom pages in non-precompiled format.

于 2009-12-04T22:31:18.897 に答える
0

How would you know what controls should be used to build the page ? You get if off of a config or a DB ?It is possible, we are using a base page (Base.aspx) which acts like a shell The user controls which needs to be added are configured in DB and depending on the request, they are added at runtime using Page.Controls.Add (controlname). But we build these ascx controls at design time.

Edit: I happen to see this http://www.codeproject.com/KB/dotnet/dynacodgen.aspx

于 2009-12-04T22:31:45.590 に答える