Code Behind Page Page /WebServices/MapService.asmx.cs (C#)
Used by Page /WebServices/MapService.asmx (C#)
1: using System;  
2: using System.Collections.Generic;  
3: using System.Linq;  
4: using System.Web;  
5: using System.Web.Services;  
6: using QuizNetOnline.Logic;  
7: using Microsoft.ApplicationBlocks.Data;  
8:   
9: namespace QuiznetOnline.Web.UI.WebServices  
10: {  
11:     /// <summary>  
12:     /// Summary description for MapService  
13:     /// </summary>  
14:     [WebService(Namespace = "http://tempuri.org/")]  
15:     [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]  
16:     [System.ComponentModel.ToolboxItem(false)]  
17:     // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.    
18:     [System.Web.Script.Services.ScriptService]  
19:     public class MapService : System.Web.Services.WebService  
20:     {  
21:   
22:         [WebMethod]  
23:         public List<QuestionLog> GetLastnMapPositions(int NumberOfRecords)  
24:         {  
25:   
26:             QuestionLog questionLog = new QuestionLog();  
27:             List<QuestionLog> questionLogs = new List<QuestionLog>();  
28:             questionLogs = questionLog.Load(NumberOfRecords,new SqlWrapper());  
29:   
30:             return questionLogs;  
31:         }  
32:     }  
33: }  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.