ClientSide
========
function loadSelectedAppt()
{

    var msg = document.getElementById("txtApptID").value;



FanshaweStudentServices.ServerSidePage.LoadSelectedAppt(msg,LoadSelectedApptCallback);


   }


On the serverside
=============

[AjaxMethod]
                public DataSet LoadSelectedAppt(int iAppId)
                {

                        string args1 =  "SELECT * FROM qrySelectAppointment 
WHERE ApptID = "
+ iAppId;
                        string args2 = "SELECT * FROM Recommendations ORDER BY
RecommendationID";
            string args3 = "SELECT * FROM qryAdvisors ORDER BY
AdvisorID";
            string args4 = "SELECT * FROM qryStudents ORDER BY
StudentID";
                        string [] sp = {args1,args2, args3, args4};
                        string [] tablename =
{"Appointments","Recommendations","Advisors","Students"};

                        DataSet ds = ObjDb.getDataSet(sp,tablename);



                        return  ds;


                }//end loadSelectedAppt

There seems to be some changes in the new version which prevents from
getting a response from the server.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to