PC Review


Reply
Thread Tools Rate Thread

2 codebehind files and ..

 
 
pintu
Guest
Posts: n/a
 
      18th Aug 2006
Hi..

Can I hav 2 codebehind files(x.aspx.cs ) and one x.aspx pages..Any body
plz give me idea on this..

Thanks

 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      18th Aug 2006
"pintu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> Can I hav 2 codebehind files(x.aspx.cs ) and one x.aspx pages..Any body
> plz give me idea on this..


What are you trying to do?


 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      18th Aug 2006
Why would you want to have 2 code-behind pages for an aspx page ?

What could you possibly include in the
second one that you couldn't include in the first one ?

If you need self-contained helper functions, write a class and place the source in
the App_Code directory or, even better, compile your helper classes to assemblies
and place the assemblies in the /bin directory.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
===================================
"pintu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi..
>
> Can I hav 2 codebehind files(x.aspx.cs ) and one x.aspx pages..Any body
> plz give me idea on this..
>
> Thanks
>



 
Reply With Quote
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      18th Aug 2006
yes.

in version 1, have one codebehnd inherit from the first.
in version 2, you can use inherence, or have as many partial class source
files as you want.

-- bruce (sqlwork.com)

"pintu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi..
>
> Can I hav 2 codebehind files(x.aspx.cs ) and one x.aspx pages..Any body
> plz give me idea on this..
>
> Thanks
>



 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      18th Aug 2006
re:
> in version 2, you can use inherence, or have as many partial class source files as you want.


I'd like to see a demonstration of those techniques,
in regard to more than one code-behind file.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
===================================
"bruce barker (sqlwork.com)" <(E-Mail Removed)> wrote in message
news:ud%(E-Mail Removed)...
> yes.
>
> in version 1, have one codebehnd inherit from the first.
> in version 2, you can use inherence, or have as many partial class source files as you want.
>
> -- bruce (sqlwork.com)
>
> "pintu" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi..
>>
>> Can I hav 2 codebehind files(x.aspx.cs ) and one x.aspx pages..Any body
>> plz give me idea on this..
>>
>> Thanks
>>

>
>



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      18th Aug 2006
"bruce barker (sqlwork.com)" <(E-Mail Removed)> wrote
in message news:ud%(E-Mail Removed)...

> in version 2, you can use inherence, or have as many partial class source
> files as you want.


Can you? How?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
reading XML files from codebehind file Martin Eyles Microsoft ASP .NET 8 13th Sep 2005 07:24 PM
reusing codebehind files? Anders Bohlin Microsoft ASP .NET 2 13th Apr 2004 01:54 PM
Different folders for aspx and codebehind files Nelson Hsu Microsoft ASP .NET 3 15th Mar 2004 06:59 PM
Newbie: Multiple codebehind files John Spiegel Microsoft ASP .NET 4 27th Aug 2003 04:12 PM
codebehind files in different location Maurice Walmsley Microsoft ASP .NET 6 26th Aug 2003 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 PM.