Hi there,
I don't think this is actually possible, however, you could create a normal ASPX page and code file and just get the code file to inherit from your pre-compiled class. That ought to work. Just make sure your pre-compiled class inherits from
Page
like the ASPX code file class does.
Example of ASPX code file class declaration:
public class MyPage : Page
goes to:
public class MyPage : MyLibraryPageClass
and your LibraryPageClass inherits page like so:
public class MyLibraryPageClass : Page
Hope this helps,
Ed
Edit: Sample Code
MyPage.aspx.cs file:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class MyPage : MyLibraryPage
{
}
MyLibraryPage.cs file:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class LibraryPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Form.InnerHtml = "Hello world!";
}
}