We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

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

dba123
dba123 asked
on
Medium Priority
299 Views
Last Modified: 2008-03-06
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

error.aspx

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
Comment
Watch Question

You can not actually have 2 code behind files, u need to create a separate ErrorPage.aspx with error label

Regards
Sachit.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.