Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > how many classes within the asmx

Reply
Thread Tools

how many classes within the asmx

 
 
Craig G
Guest
Posts: n/a
 
      12-06-2004
can i only have one class in the asmx page?

i wanted one page with numerous classes, then i would only have one web
reference but could use the different classes

ideally i didnt want to go down the line of having one asmx page per classe
then having a seperate reference for each. as i have 17 classes

Cheers,
Craig


 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      12-06-2004
An .asmx isn't a page at all. It is file type that contains special classes
that can be called over http from a different machine (a web service).

You may have more than one class per .asmx page if you like, but it makes
sense that the classes be related in some way.


"Craig G" <> wrote in message
news:...
> can i only have one class in the asmx page?
>
> i wanted one page with numerous classes, then i would only have one web
> reference but could use the different classes
>
> ideally i didnt want to go down the line of having one asmx page per
> classe
> then having a seperate reference for each. as i have 17 classes
>
> Cheers,
> Craig
>
>



 
Reply With Quote
 
 
 
 
Craig G
Guest
Posts: n/a
 
      12-06-2004
i found that if i put another class in the asmx then it wouldnt pick it up
when i then reference it in my project. it would only pick up the one class

"Scott M." <s-> wrote in message
news:...
> An .asmx isn't a page at all. It is file type that contains special

classes
> that can be called over http from a different machine (a web service).
>
> You may have more than one class per .asmx page if you like, but it makes
> sense that the classes be related in some way.
>
>
> "Craig G" <> wrote in message
> news:...
> > can i only have one class in the asmx page?
> >
> > i wanted one page with numerous classes, then i would only have one web
> > reference but could use the different classes
> >
> > ideally i didnt want to go down the line of having one asmx page per
> > classe
> > then having a seperate reference for each. as i have 17 classes
> >
> > Cheers,
> > Craig
> >
> >

>
>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      12-06-2004
Yes, you are right...It seems that while VS.NET will allow you to put 2
classes in one .asmx, only one is actually visible.


"Craig G" <> wrote in message
news:...
>i found that if i put another class in the asmx then it wouldnt pick it up
> when i then reference it in my project. it would only pick up the one
> class
>
> "Scott M." <s-> wrote in message
> news:...
>> An .asmx isn't a page at all. It is file type that contains special

> classes
>> that can be called over http from a different machine (a web service).
>>
>> You may have more than one class per .asmx page if you like, but it makes
>> sense that the classes be related in some way.
>>
>>
>> "Craig G" <> wrote in message
>> news:...
>> > can i only have one class in the asmx page?
>> >
>> > i wanted one page with numerous classes, then i would only have one
>> > web
>> > reference but could use the different classes
>> >
>> > ideally i didnt want to go down the line of having one asmx page per
>> > classe
>> > then having a seperate reference for each. as i have 17 classes
>> >
>> > Cheers,
>> > Craig
>> >
>> >

>>
>>

>
>



 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Classes within classes David ASP .Net 2 07-22-2005 07:13 PM
Nested classes within other classes Tony Johansson C++ 2 12-14-2004 11:41 AM
referencing handler file within .asmx for webservice asptodotnet ASP .Net 1 11-18-2004 03:43 PM
Protected classes within classes Kevin Grigorenko C++ 6 12-05-2003 02:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57