Ask a Question related to ASP.NET Web Services, Design and Development.
-
Erkan KURTULUŞ #1
method in Class not visible
Hi Everbody,
i want to any class send to client side with Web Method. But there is a
method in this class. altough its all property can be pass on client side, A
method can't be pass. how can i pass a method in class?
[WebMethod]
public ogr getogr
{
return new ogr();
}
public class ogr
{
int i;
public string test
{
Return "test";
}
}
Client side
public void getogr
{
WebService.ogr _ogr = WebService.getogr();
_ogr.test(); // invisible
}
Erkan KURTULUŞ Guest
-
class is not visible
Hi, I want to use a user control on my page. I want to reference to the control class from the page’s code-behind. I registered the control:... -
#25580 [WFx]: set_error_handler to a class/method resets class properties when error occurs
ID: 25580 Updated by: sniper@php.net Reported By: paul dot liversidge at recycledpixels dot com Status: Wont... -
#25580 [Opn->WFx]: set_error_handler to a class/method resets class properties when error occurs
ID: 25580 Updated by: sniper@php.net Reported By: paul dot liversidge at recycledpixels dot com -Status: Open... -
#25580 [Opn]: set_error_handler to a class/method resets class properties when error occurs
ID: 25580 User updated by: paul.liversidge@recycledpixels.com Reported By: paul dot liversidge at recycledpixels dot com... -
#25580 [NEW]: set_error_handler to a class/method resets class properties when error occurs
From: paul dot liversidge at recycledpixels dot com Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: ... -
Jan Tielens #2
Re: method in Class not visible
This is default behavior. You can't change it.
--
Greetz,
Jan
__________________________________
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Erkan KURTULUŞ" <ekurtulus@msn.com> schreef in bericht
news:eE57sisyDHA.1576@TK2MSFTNGP11.phx.gbl...A> Hi Everbody,
>
> i want to any class send to client side with Web Method. But there is a
> method in this class. altough its all property can be pass on client side,> method can't be pass. how can i pass a method in class?
> [WebMethod]
>
> public ogr getogr
>
> {
>
> return new ogr();
>
> }
>
> public class ogr
>
> {
>
> int i;
>
> public string test
>
> {
>
> Return "test";
>
> }
>
> }
>
> Client side
>
> public void getogr
>
> {
>
> WebService.ogr _ogr = WebService.getogr();
>
> _ogr.test(); // invisible
>
> }
>
>
>
>
Jan Tielens Guest
-
Erymuzuan Mustapa #3
Re: method in Class not visible
may be you can create another service for the "test method" or published it
as meber of "ogr", the behaviour is actually caused when ogr is serialized
to XML, in only serializes the public members,
but if you really want to this , then web services is not an option, .Net
remoting make more sense when you can have an interface on both side,
Regards
--
Erymuzuan Mustapa
Inter Virtual Sdn. Bhd.
See MIND at [url]http://www.MIND.com.my[/url]
"Erkan KURTULUŞ" <ekurtulus@msn.com> wrote in message
news:eE57sisyDHA.1576@TK2MSFTNGP11.phx.gbl...A> Hi Everbody,
>
> i want to any class send to client side with Web Method. But there is a
> method in this class. altough its all property can be pass on client side,> method can't be pass. how can i pass a method in class?
> [WebMethod]
>
> public ogr getogr
>
> {
>
> return new ogr();
>
> }
>
> public class ogr
>
> {
>
> int i;
>
> public string test
>
> {
>
> Return "test";
>
> }
>
> }
>
> Client side
>
> public void getogr
>
> {
>
> WebService.ogr _ogr = WebService.getogr();
>
> _ogr.test(); // invisible
>
> }
>
>
>
>
Erymuzuan Mustapa Guest
-
Unregistered #4
Re: method in Class not visible
Use reflection and invoke the string "yourmethodname"
Unregistered Guest



Reply With Quote

