Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Troubles with jquery ui dialog and save method
Message
 
 
À
03/04/2013 13:53:06
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01569821
Message ID:
01569951
Vues:
19
>I'm going to say this again....
>
>One of the issues I have with your questions here is that you often don't do what's suggested and go off on your own, doing things that circle back to earlier suggestions.
>
>So, again to repeat what Viv and I have both said...
>
>Check what is being sent over the wire. If the json isn't being created, you'll get nulls sent to the controller.
>
>
This is the strange thing - this is what is being sent

Client.Address aa
Client.Contact1.Contact
Client.Contact1.Email
Client.Contact1.phoneInfo...
Client.Contact1.phoneInfo...
Client.Contact2.Contact
Client.Contact2.Email
Client.Contact2.phoneInfo... searchClientNo=
Client.Contact2.phoneInfo...
ClientId 240
ClientName Ab Spare
ClientNumber 1002
fntype Edit
searchClientName a

----------------------------

fntype=Edit&ClientId=240&ClientNumber=1002&ClientName=Ab+Spare&Client.Address=aa&Client.Contact1.Contact=&Client.Contact1.Email=&Client.Contact1.phoneInfo.Phone=&Client.Contact1.phoneInfo.Ext=&Client.Contact2.Contact=&Client.Contact2.Email=&Client.Contact2.phoneInfo.Phone=&Client.Contact2.phoneInfo.Ext=searchClientNo=&searchClientName=a

--------------------------------
So, I am thinking the problem is in Concatenation I've been trying - I probably should not use concat and I just commented this out:

Here is what I have:
 var form = $('form', this);
            debugger;
            var oForm = form.serialize();
            //oForm = oForm.concat($('#frmClientsSearch').serialize());
So, right now I commented out the concat part - I wanted to pass both the model and the calling form data also.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform