473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

multiple code behind referrences

Is there a way to reference more than one code-behind page? I want to use a sub in another page but didn't want to have to move it to the page that I want to use it.

Here's how I'm referencing them today:
<%@ Page Inherits="partnerhome" src="partner_home.vb" CodeBehind="partner_home.vb" Language="vb" %>

Thanx!

Nov 18 '05 #1
1 873
AFAIK no (and it would likely a bit diffuclt to maintain some code behind
that is shared by too pages.

I would just make it part of a library (and you'll be able to reuse it on a
third, fourth etc page).

Patrice

--

"Chris" <Ch***@discussions.microsoft.com> a écrit dans le message de
news:CF**********************************@microsof t.com...
Is there a way to reference more than one code-behind page? I want to use a sub in another page but didn't want to have to move it to the page that I
want to use it.
Here's how I'm referencing them today:
<%@ Page Inherits="partnerhome" src="partner_home.vb" CodeBehind="partner_home.vb" Language="vb" %>
Thanx!

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Arne | last post by:
All my code behind pages gets compiled into one DLL. I would like to redirect my code behind into multiple DLLs so that I get more flexibility when installing new features to a web site. I am adding...
7
by: tshad | last post by:
I have a control that I am using from Metabuilders that requires you to use: <%@ Page Inherits="MetaBuilders.WebControls.DialogPage" %> How do I inherit my code-behind page or another object...
7
by: David Lozzi | last post by:
I need to support multiple keyword search, not boolean searchs, just simple searches, i.e. "marhsall ma". How is this done? Do I send the entire search string to the Proc? How do I deal with it...
1
by: Me | last post by:
Hi, I inherited a web application that has several very similar forms for gathering user data. User's must choose the form that best fits their needs and fill it out. Each form has about 15...
7
by: Nathan Sokalski | last post by:
I have user controls that contain a link to a stylesheet. Several of my pages also have a link to this same stylesheet. Because of this, the resulting output contains multiple links to the same...
4
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys Just a general query regarding using the AccessDataSource within a website which uses a MasterPage. The layout of my content page is as follows... <asp:Content ID="Content1"...
1
by: Marisa | last post by:
Hi. I am new to C#, and I am having trouble getting the multiple selection of listbox to work. I have an asp.net web form, and I need two listboxes which are filled with an access table. I have...
1
by: jvcoach23 | last post by:
I have the following code in the aspx <asp:Label ID="lblRightWrong" runat="server" /> that is inside a datagrid, itemtemplate the vb code behind Me.lblRightWrong.text = "Correct"
3
by: Patrice | last post by:
Hi all, I'm currently upgrading a 1.1 application. We were using a command file to invoke the command line compiler to that we have the code behind compiled into multiple DLLs (to be able to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.