Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

ASMX returning JSON always inside an xml tag -


this question has answer here:

i have asmx services return json strings. use datacontractjsonserializer class , resulting json fine.

when call these services consume in web app, response coming backencapsulated in xml tag. ways rid of xml , return json.

example response :

< ?xml version="1.0" encoding="utf-8" ?> < string xmlns="http://whatever.net/">  {"success":true,"data":{"roomlist":[{"createdat":"\/date(1291192978793-0800)\/","gametimeout":0,"matchpointingtype":0,"movetimeout":0,"name":"reterras numagona alantis","roomid":44,"sfid":null,"startingmatchpoints":0,"updateat":null,"userid":12},{"createdat":"\/date(1291115544347-0800)\/","gametimeout":0,"matchpointingtype":0,"movetimeout":0,"name":"12122","roomid":43,"sfid":null,"startingmatchpoints":0,"updateat":null,"userid":2},{"createdat":"\/date(1291115537413-0800)\/","gametimeout":0,"matchpointingtype":0,"movetimeout":0,"name":"12122","roomid":42,"sfid":null,"startingmatchpoints":0,"updateat":null,"userid":2}],"totalcount":42}}  < / string> 

sounds similar question:

how let asmx file output json


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -