asp json 다루기출처 : http://87nyunseng.tistory.com/entry/asp-json-%EB%8B%A4%EB%A3%A8%EA%B8%B0asp에서 json(제이슨) 다루는 방법 view plaincopy to clipboardprint? //json text "0":{ "id":1384045, "title":"scientist with test tube radiant gradient bg", "creator_name":"Jose Gil", "creator_id":6537, "thumbnail_html_tag":"", "thumbnail_width":81, "thumbnail_height":110, }
JsonService_src.zipJson 을 지원하는 WCF Service Application 을 만들어보자.왜 만드냐구? 뭐 필요할때가 있겠지!필자는 jQuery (javascript, ajax)로 클라이언트 프로그램을 개발하는데 json 형태로 데이터를 받아볼까 해서 만들게 되었다. 물론 특정 js라이브러리 사용으로 직접 DB 엑세스도 가능하다.(추후 Node.js 를 통해서 개발해 볼 예정이다.)Visual Studio 에서 WCF Service Application 프로젝트를 생성한다.그러면 위와 같다. Web.config 파일! 소스 긁기는 첨부파일의 소스를 활용!위의 구성파일은 WCF Help 서비스 지원과, ASP.net 호환성, Json 지원여부를 설정한 것이다.자세한 설명은 추후 포스..
CS파일 메서드에서는 일반 텍스트스트링이 아닌 Collection 객체를 넘겨보도록 하겠다. 해당 메서드위에 [WebMethod] 를 꼭 선언 해주어야 ajax로 받을 수 있다. [WebForm1.cs] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.Services; namespace WebMethod_JSON { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender..
- Total
- Today
- Yesterday
- drag&drop
- jquery chart
- MSSQL
- json
- 셀렉터
- CSS
- jQuery
- Style
- Ajax
- Excel
- html5
- css3
- WCF
- Mobile
- workbook
- radius
- 자바스크립트
- 프로시저
- SVG
- JavaScript
- rowspan
- ASP.NET
- jQuery Mobile
- JS
- IE
- WebApi
- 저장프로시저
- grid
- Chart
- 제이쿼리
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |