Question handling multiple requests from ajax

BlackByte

Well-known member
Joined
Jun 29, 2008
Messages
126
Location
South Africa, Durban
Programming Experience
1-3
hi im building a library web application, there is several member info that is requested throughout the application, and i want to have all the requests handled by 1 page.
E.g if i use the page member.aspx i want it to determine what type of request is being sent by ajax, whether its for the members name or books that are outstanding.

My idea was to write the ajax like
VB.NET:
request.open("GET","member.aspx?type=membername&memberid=12345",false)
so in member.aspx load event i will then use
VB.NET:
 If Request.QueryString("type") = "membername" Then
    'i know the request     is for the members      name
End If
now i dont know if this the correct way to do this, can i be advised..
 
Back
Top