|
 |
aspx thread: Writing my own class
Message #1 by "Kan Yu Ting" <yu-ting.kan@p...> on Mon, 17 Jun 2002 17:44:45
|
|
Hi all,
I want to ask a simple question. If I write a C# class with several
methods, how can I use these class and methods in aspx 's code behind.
DO I need to compile the class first and then reference the dll in my
project. Or just place in my VS.net project and build it together and it
will then freely for use.
I study the IBuySpy example in wrox and it mention about PageBase : Class.
What's it about, I cant find any reference in msdn.
Thanks :)
Kan
Message #2 by Aneesh P U <aneeshpu@y...> on Mon, 17 Jun 2002 10:08:42 -0700 (PDT)
|
|
hi Kan,
What u said is right...all u have to do is just place
the class in ur project and build it .....then u can
use it in ur code behind .
Regards,
Aneesh
--- Kan Yu Ting <yu-ting.kan@p...> wrote:
> Hi all,
>
> I want to ask a simple question. If I write a C#
> class with several
> methods, how can I use these class and methods in
> aspx 's code behind.
>
> DO I need to compile the class first and then
> reference the dll in my
> project. Or just place in my VS.net project and
> build it together and it
> will then freely for use.
>
> I study the IBuySpy example in wrox and it mention
> about PageBase : Class.
> What's it about, I cant find any reference in msdn.
>
>
> Thanks :)
> Kan
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Message #3 by Jagdeep Dua <Jagdeep.Dua@n...> on Mon, 17 Jun 2002 18:16:00 +0100
|
|
Don't forget to reference the correct namespace of the class in the
codebehind. You can also keep the class in a separate project and build
that. Then add a reference to the DLL it creates in your web project and
again specify the namespace and use it in your codebehind.
Jagdeep Dua | .Net Architect | ND Technologies
4th floor, Horatio House
Fulham Palace Road
Hammersmith W6 8JZ
t: +44 (0)20 8222 9400 f: +44 (0)20 8222 9419
w: www.netdecisions.com
e: jagdeep.dua@n...
-----Original Message-----
From: Aneesh P U [mailto:aneeshpu@y...]
Sent: 17 June 2002 18:09
To: ASP+
Subject: [aspx] Re: Writing my own class
hi Kan,
What u said is right...all u have to do is just place
the class in ur project and build it .....then u can
use it in ur code behind .
Regards,
Aneesh
--- Kan Yu Ting <yu-ting.kan@p...> wrote:
> Hi all,
>
> I want to ask a simple question. If I write a C#
> class with several
> methods, how can I use these class and methods in
> aspx 's code behind.
>
> DO I need to compile the class first and then
> reference the dll in my
> project. Or just place in my VS.net project and
> build it together and it
> will then freely for use.
>
> I study the IBuySpy example in wrox and it mention
> about PageBase : Class.
> What's it about, I cant find any reference in msdn.
>
>
> Thanks :)
> Kan
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
|
|
 |