hi to all,

I written a web method ListTask() which returns array ob object of class TaskList which give me result in xml form
I want to bind that result to table in asp.net 3.5 aspx page by calling that webMethod in jQuery ajax call.

I have tried many ways one of them is -

                    type: "GET",
                    url: webmethod,
                    data: param,
                    dataType: "xml",
                    complete: function processResult(xData) {
                        $(xData).find("TaskList").each(function() {
                            //                                               $("#data").append($(this).attr("TaskName") + "<br/>");

It gives me error.
If I parse results by changing datatype json and parsing it by parsetojson method then it returns 'undefined'.

please help me out.

Recommended Answers

All 2 Replies

You should use success: instead of complete: to retrieve the data. Success returns the data, whereas complete is a status notification. Read more here: http://api.jquery.com/jQuery.ajax/

I done it by using handler.
I called webservice into that and converting data into json string ant it will running fine.

but I want to do it without handler and without using webservice.

is it not possible to send data from aspx page by response.write();

I am trying to do that one also but error occured when I am retriving data

Error: Permission denied for http://localhost:4352 to get property XMLHttpRequest.channel

can anybody tell me how to do that one?:(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.