Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: reusing codebehind files?

Reply
Thread Tools

Re: reusing codebehind files?

 
 
Scott Allen
Guest
Posts: n/a
 
      04-13-2004
Using the exact same code behind isn't possible, but try placing the
code you want to share into a class that you can use from either
object.

--
Scott
http://www.OdeToCode.com

On Tue, 13 Apr 2004 11:06:46 +0200, "Anders Bohlin" <(E-Mail Removed)>
wrote:

>hi.
>
>I got a mainpage wich uses cutom controls.
>i want to use the same codebehind for the customcontrol as i have for the
>mainpage. is this possible?
>
>yours truely /Anders
>


 
Reply With Quote
 
 
 
 
Anders Bohlin
Guest
Posts: n/a
 
      04-13-2004
okay, thanx

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:(E-Mail Removed)...
> Using the exact same code behind isn't possible, but try placing the
> code you want to share into a class that you can use from either
> object.
>
> --
> Scott
> http://www.OdeToCode.com
>
> On Tue, 13 Apr 2004 11:06:46 +0200, "Anders Bohlin" <(E-Mail Removed)>
> wrote:
>
> >hi.
> >
> >I got a mainpage wich uses cutom controls.
> >i want to use the same codebehind for the customcontrol as i have for the
> >mainpage. is this possible?
> >
> >yours truely /Anders
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reusing HttpWebRequest.GetRequestStream Dan ASP .Net 4 06-01-2007 07:29 AM
reusing a class powerranger ASP .Net 2 08-11-2004 04:59 PM
Reusing DataReader Thomas Scheiderich ASP .Net 11 04-13-2004 08:20 AM
Reusing DataSet/DataTable anon ASP .Net 1 04-01-2004 04:53 PM
reusing a bit of code? Rob Meade ASP .Net 4 01-30-2004 02:47 PM



Advertisments