Converting result from handler in array format
<p>as a new bee in Development, i have a question how can i get data according to my requeriment of what is the best practic</p>

<p>My design is like this.</p>

<p>Java script (Ajax call)  >> ashx handler (Hit databse and return data) >> databse (my values)</p>

<p>i need data like this in order to render in HTML </p>

<pre><code> var events_array = new Array();
            events_array[0] = {
                startDate: new Date(2013, 01, 25),
                endDate: new Date(2013, 01, 25),
                title: "Event 2013, 01, 25",
                description: "Description 2013, 01, 25",
                priority: 1, // 1 = Low, 2 = Medium, 3 = Urgent
                frecuency: 1 // 1 = Daily, 2 = Weekly, 3 = Monthly, 4 = Yearly
            };

            events_array[1] = {
                startDate: new Date(2013, 01, 24),
                endDate: new Date(2013, 01, 24),
                title: "Event 2013, 01, 24",
                description: "Description 2013, 01, 24",
                priority: 2, // 1 = Low, 2 = Medium, 3 = Urgent
                frecuency: 1 // 1 = Daily, 2 = Weekly, 3 = Monthly, 4 = Yearly
            }

            events_array[2] = {
                startDate: new Date(2013, 01, 07),
                endDate: new Date(2013, 01, 07),
                title: "Event 2013, 01, 07",
                description: "2013, 01, 07",
                priority: 3, // 1 = Low, 2 = Medium, 3 = Urgent
                frecuency: 1 // 1 = Daily, 2 = Weekly, 3 = Monthly, 4 = Yearly
            }
</code></pre>

<p>i want to know how can i send data like this from my ashx handler.</p>

<p>I have a class to EventEnfo. Can i pass list of EventInfo from handler and format/convert this in array like above? ? Any example please?</p>
