Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert CAD to SVG and png to svg images Pin
Code-Hunt24-Jul-13 3:36
Code-Hunt24-Jul-13 3:36 
GeneralRe: How to convert CAD to SVG and png to svg images Pin
Sudarshan Karande24-Jul-13 4:13
Sudarshan Karande24-Jul-13 4:13 
GeneralRe: How to convert CAD to SVG and png to svg images Pin
harold aptroot26-Jul-13 0:30
harold aptroot26-Jul-13 0:30 
GeneralRe: How to convert CAD to SVG and png to svg images Pin
Sudarshan Karande26-Jul-13 0:33
Sudarshan Karande26-Jul-13 0:33 
GeneralRe: How to convert CAD to SVG and png to svg images Pin
harold aptroot26-Jul-13 0:36
harold aptroot26-Jul-13 0:36 
GeneralRe: How to convert CAD to SVG and png to svg images Pin
Sudarshan Karande26-Jul-13 0:37
Sudarshan Karande26-Jul-13 0:37 
GeneralRe: How to convert CAD to SVG and png to svg images Pin
harold aptroot26-Jul-13 0:41
harold aptroot26-Jul-13 0:41 
QuestionMapping jquery data to class in MVC Pin
nitin_ion24-Jul-13 2:18
nitin_ion24-Jul-13 2:18 
Hi i have this controller function

XML
[HttpPost]
       public JsonResult SaveList(List<cap> values)
       {
           return Json(new { Result = String.Format("Fist item in list: '{0}'", values[0]) });
       }

and this is the class

C#
[Serializable]
    public class cap
    {
        public string capnumber { get; set; }
        public string capname { get; set; }
        public string capdescription { get; set; }
    }


and this is the code in jquery

var stringArray = new Array();

       stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
       stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
       stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
       stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });

       var postData = { values: stringArray };

       $.ajax({
           type: "POST",
           url: "/Home/SaveList",
           data: JSON.stringify(postData),
           success: function (data) {
               alert(data.Result);
           },
           dataType: "json",
           traditional: true
       });


i was thinking that postdata will be mapped but it is not working
how can it happen??
AnswerRe: Mapping jquery data to class in MVC Pin
Keith Barrow24-Jul-13 4:19
professionalKeith Barrow24-Jul-13 4:19 
GeneralRe: Mapping jquery data to class in MVC Pin
nitin_ion24-Jul-13 17:12
nitin_ion24-Jul-13 17:12 
QuestionRemove password from Word documents Pin
sarraarfaoui24-Jul-13 0:00
sarraarfaoui24-Jul-13 0:00 
AnswerRe: Remove password from Word documents Pin
walterhevedeich24-Jul-13 0:16
professionalwalterhevedeich24-Jul-13 0:16 
GeneralRe: Remove password from Word documents Pin
sarraarfaoui24-Jul-13 2:07
sarraarfaoui24-Jul-13 2:07 
GeneralRe: Remove password from Word documents Pin
sarraarfaoui24-Jul-13 2:07
sarraarfaoui24-Jul-13 2:07 
AnswerRe: Remove password from Word documents Pin
Code-Hunt24-Jul-13 2:19
Code-Hunt24-Jul-13 2:19 
AnswerRe: Remove password from Word documents Pin
Eddy Vluggen24-Jul-13 8:02
professionalEddy Vluggen24-Jul-13 8:02 
GeneralRe: Remove password from Word documents Pin
Amir Mohammad Nasrollahi29-Jul-13 5:59
professionalAmir Mohammad Nasrollahi29-Jul-13 5:59 
Questionmerge cells in rdlc report Pin
cdpsource23-Jul-13 21:46
cdpsource23-Jul-13 21:46 
AnswerRe: merge cells in rdlc report Pin
Code-Hunt23-Jul-13 23:41
Code-Hunt23-Jul-13 23:41 
GeneralRe: merge cells in rdlc report Pin
cdpsource24-Jul-13 0:37
cdpsource24-Jul-13 0:37 
QuestionLINQ - select new into existing dataclass Pin
amienc23-Jul-13 19:26
professionalamienc23-Jul-13 19:26 
AnswerRe: LINQ - select new into existing dataclass Pin
Code-Hunt23-Jul-13 19:49
Code-Hunt23-Jul-13 19:49 
QuestionC# Forms to Services Pin
Andre O Rahming23-Jul-13 19:26
Andre O Rahming23-Jul-13 19:26 
AnswerRe: C# Forms to Services Pin
Richard MacCutchan23-Jul-13 20:48
mveRichard MacCutchan23-Jul-13 20:48 
AnswerRe: C# Forms to Services Pin
Nicholas Marty24-Jul-13 0:51
professionalNicholas Marty24-Jul-13 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.