Hi,
yes, I added more checks to for the types, but you do not need to
parseInt the value, you can simple use Test(1, "some text");.
If you want to put an integer from a textbox you have to use
parseInt($("textboxid").value,10);
Regards,
Michael
On 4/4/06, Chris Fraschetti <[EMAIL PROTECTED]> wrote:
>
> Up until now I have been defining my C# .NET methods with specific
> types...
>
> public void Test(int SomeNumber, String SomeString)
>
> and calling this function from JS via Ajax.NET has been very loose with
> my parameter types. Calling Test('1', 'some text') would successfully
> call the .NET Test method.
>
> As of the latest library 6.4.4.1 I started having a problem where I
> need to send the specific types my .NET functions are looking for.
>
> Ex:
>
> Test('1', 'some text') fails, although
> Test(parseInt('1', 10), 'some text') does go through.
>
> Is there some functionality that was lost to where I need to pass all
> the parameters as the correct types or is this problem somehow
> unrelated and I'm just missing a necessary JS include or web.config
> setting?
>
> Thanks in advance,
> Chris Fraschetti
>
>
> >
>
--
Kind regards,
Michael Schwarz
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---