L
L
La2ha2013-03-09 08:00:50
PHP
La2ha, 2013-03-09 08:00:50

Parse PHP ajax response from ASP.NET

I am parsing a site written in ASP.NET ( www.iaai.com/Vehicles/VehicleAdvSearch.aspx?savepreference=true#anchorSearchResults ), I myself am not familiar with ASP at all, but as I managed to understand there, the whole site consists of one healthy form from body to / boby and almost every time I click on the link, the JS function __doPostBack () is triggered, which ajax sends the form, and in response receives something like this pastebin.com/c7eb9XhH After analyzing a little, I realized that this is some kind of structure data is something like an associative array that describes what, where and how to insert on the page, which is processed by JS and does what it says.

I want to drive it into an associative array, in order to be able to work with this data, for this you need to write or take somewhere a function that would do this, but for this you need to know the rules by which this structure is formed, but Google somehow did not help , although I may not be able to correctly compose the request.

Please do not swear by those who fumble in ASP.NET and to whom it may seem obvious, like some json_decode () for those who use PHP, I just accidentally climbed into someone else's garden with my cucumber)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Arkhipov, 2013-03-09
@La2ha

In my opinion, everything is obvious here and ASP has nothing to do with it: the numbers are the number of characters in the block. What else is needed?

G
Georgy Grigoriev, 2013-03-30
@IamKarlson

the whole site consists of one healthy form from body to /boby and almost every click on the link triggers the JS function __doPostBack()

The entire page on asp.net consists of
<form runat="server"> //здесь непосредственно контролы аспнетовские </form>
Each control expands into some kind of html view.
In particular, this block where a bunch of ads (or whatever) is probably a listview.
_dopostback method which ajax'om (most often) or distortion of the page uploads or updates the data. In fact, this is a method of exchanging information with the server about the current state of the page and information entered by the user.
If you need to isolate any specific element, then it will not be a specific span, but a complete wrapper including divs and so on.
Form a task in more detail what you specifically want to do with this page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question