protected void Page_Load(object sender, EventArgs e) { // our helper class to get data DbXmlReader reader = new DbXmlReader(); Response.AppendHeader("Content-Type", "text/xml"); Response.Write(reader.getXmlString("prcGetRoutes")); }
protected void Page_Load(object sender, EventArgs e) { string sessionID = Request.QueryString["sessionID"]; string phoneNumber = Request.QueryString["phoneNumber"]; // our helper class to get data DbXmlReader reader = new DbXmlReader(); Response.AppendHeader("Content-Type", "text/xml"); // actually we are getting a response back here, but the result will be a deleted route on the webpage Response.Write(reader.getXmlString("prcDeleteRoute", new SqlParameter("@sessionID", sessionID), new SqlParameter("@phoneNumber", phoneNumber))); }
protected void Page_Load(object sender, EventArgs e) { string sessionID = Request.QueryString["sessionID"]; string phoneNumber = Request.QueryString["phoneNumber"]; // our helper class to get data DbXmlReader reader = new DbXmlReader(); Response.AppendHeader("Content-Type", "text/xml"); // sessionID and phoneNumber are the unique identifiers for routes if the phoneNumber is unique. // the phoneNumber field is a string field and anything can be put in that field, but for // uniqueness, the actual phone number should be used Response.Write(reader.getXmlString("prcGetRouteForMap", new SqlParameter("@sessionID", sessionID), new SqlParameter("@phoneNumber", phoneNumber))); }