Rank: Advanced Member Groups: Member
Joined: 10/20/2008 Posts: 75
|
Hello, can I re-use the file explorer.aspx that is in the demo pages? What is the fastest way to re-use? Thanks. Andrea
|
Rank: Advanced Member Groups: Member
Joined: 10/20/2008 Posts: 75
|
This code is necessary?
#Region "Web Form Designer generated code" Protected Overrides Sub OnInit(e As EventArgs) ' ' CODEGEN: This call is required by the ASP.NET Web Form Designer. ' InitializeComponent() MyBase.OnInit(e) End Sub 'OnInit '/ <summary> '/ Required method for Designer support - do not modify '/ the contents of this method with the code editor. '/ </summary> Private Sub InitializeComponent() End Sub 'InitializeComponent #End Region
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You definitely reuse any or a part of any page in our sample package.
The code that is marked as "Web Form Designer Generated Code" should not be necessary in this case. However since it is generated by designers, it may just come back even if you delete it. Visual Studio 2005 uses partial class to address this issue rather well, while Visual Studio 2003 often is worse. In any case the existence of such empty stub code should not affect any runtime behaviors.
Thanks
|