• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

More than one code-behind and easy way to create on the fly

I assume it's possible to have not just one code-behind.  For example, in my project, I have:

index.aspx with index.aspx.vb


I need to create a code-behind for error.aspx so I can establish a page_load for it.  Is there an easy/quick way to add and link a new code-behind .vb page for error.aspx if it doesn't already have one through VS 2005 without having to go through the manual process of creating a new class, then changing the error.aspx page directives to correctly point to the new code-behind?  I thought there was a way VS 2005 could do this somehow in an option using the GUI
1 Solution
You can not actually have 2 code behind files, u need to create a separate ErrorPage.aspx with error label


Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now