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

Posted on 2006-03-26
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


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
Question by:dba123
    1 Comment
    LVL 12

    Accepted Solution

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now