Ok I was able to get a part of it working by upgrading to the newes version.
But I'm still not able to see the data. I'm sending the same dataset I
received from the server back to the server after some changes have been
made by the client. I'm not creating a new table. Here is my code. The
JavaScript is the same.
I get the error at this line:
object oWrapper =
oConverter.Deserialize(DataObject,Type.GetType("System.Data.DataSet"));
Code:
[AjaxPro.AjaxMethod()]
public string GetShipperUpDateData(AjaxPro.JavaScriptObject DataObject)
{
return BuildData(DataObject);
}
public string BuildData(AjaxPro.JavaScriptObject DataObject)
{
string Str = "Test ";
AjaxPro.DataSetConverter oConverter = new
AjaxPro.DataSetConverter();
try
{
object oWrapper =
oConverter.Deserialize(DataObject,Type.GetType("System.Data.DataSet"));
DataSet oDS = (DataSet) oWrapper;
}
catch (Exception ex)
{
Response.Write("The query is " +
ex.ToString());
Response.Write("<BR>");
}
return Str;
}
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Schwarz
Sent: Sunday, July 09, 2006 6:43 PM
To: [email protected]
Subject: [ajaxpro] Re: passing client date to server
and what is ArrayData.Rows?
On 7/10/06, John Kennedy <[EMAIL PROTECTED]> wrote:
>
> Sorry not date, data. I'm trying to pass the array to the server.
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
> Of Michael Schwarz
> Sent: Sunday, July 09, 2006 6:20 PM
> To: [email protected]
> Subject: [ajaxpro] Re: passing clent date to server
>
>
> Hi,
>
> I cannot see any "date", and you have to use a string array for your
> method. Maybe you asked for something different, can you be a little
> bit clearer? Thanks!
>
> Regards,
> Michael
>
> On 7/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > I need help passing an array from a JavaScript functions to the sever.
> > I am using the 1.4 frame work.
> >
> > Here is the example that I'm trying to use.
> >
> > function UpdateData()
> > {
> >
> > ArrayData.Rows[0].name = "name";
> > ArrayData.Rows[0].name2 = "Names2";
> > ArrayData.Rows[0].address = "Address";
> > ArrayData.Rows[0].city = "City";
> > ArrayData.Rows[0].zipcode = "Zipcode";
> > ArrayData.Rows[0].telephone = "Telephone";
> > ArrayData.Rows[0].Fax = "Fax";
> > ArrayData.Rows[0].email = "Email";
> > AddEditData.GetDateData (ArrayData,GetMessageOfTheDay_CallBack);
> > }
> >
> > Server said code
> > [Ajax.AjaxMethod]
> > public string GetDateData(string []StrData)
> > {
> > return BuildUpdateData(StrData);
> > }
> >
> >
> > >
> >
>
>
> --
> Best regards | Schöne Grüße
> Michael
>
> Microsoft MVP - Most Valuable Professional
> Microsoft MCAD - Certified Application Developer
>
> http://weblogs.asp.net/mschwarz/
> http://www.schwarz-interactive.de/
> mailto:[EMAIL PROTECTED]
>
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
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
-~----------~----~----~----~------~----~------~--~---