multiple code behind referrences


G

Guest

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!
 
Ad

Advertisements

P

Patrice

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 said:
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" %>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top