Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Type description for serialized types used in PageMethods ?

 
Thread Tools Search this Thread
Old 11-02-2009, 01:27 PM   #1
Default Type description for serialized types used in PageMethods ?


Hi all,

I'm using a method that saves a WebServer.Data instance using an AJAX page
method. Data are collected client side and an instance of the WebServer.Data
proxy client type is created client side and then sent using the page
method.

If the type of one of the client side properties is wrong (for example using
a string rather than an integer), the AJAX client side infrastructure will
catch this before the actual web service call. Does somebody knows how it is
done ? Where is this information ?

My goal would be to be able to know client side which actual type should be
used for any property of the WebServer.Data client proxy type. Is there
something similar to reflection i could use client side ?

TIA



Patrice
  Reply With Quote
Old 11-03-2009, 11:04 PM   #2
john gorter
 
Posts: n/a
Default Re: Type description for serialized types used in PageMethods ?
Patrice,

You can set a breakpoint in your javascript code and step throug the
generated javascript for the proxy. Maybe that explains a lot

Greets,
John



"Patrice" <http://scribe-en.blogspot.com/> wrote:
> Hi all,
>
> I'm using a method that saves a WebServer.Data instance using an AJAX
> page
> method. Data are collected client side and an instance of the
> WebServer.Data
> proxy client type is created client side and then sent using the page
> method.
>
> If the type of one of the client side properties is wrong (for example
> using
> a string rather than an integer), the AJAX client side infrastructure
> will
> catch this before the actual web service call. Does somebody knows how
> it is
> done ? Where is this information ?
>
> My goal would be to be able to know client side which actual type
> should be
> used for any property of the WebServer.Data client proxy type. Is
> there
> something similar to reflection i could use client side ?
>
> TIA



--
jmj gorter


john gorter
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Carsoft, PARTS 1-7 A-B, Car Diagnostic and Tunning equipment, Dashboard tools, Workshop manuals ola@mail.gr Computer Support 0 11-07-2007 08:59 PM
IE Problem Samuel Townsend Computer Support 3 09-20-2004 10:00 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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