//Listing 15-2. Web Form Code That Adds a New Issue protected void AddIssue_Click(object sender, EventArgs e) { //ApplicationData srvRef = // new ApplicationData(new Uri("http://localhost/HelpDesk/ApplicationData.svc/")); ApplicationData srvRef = new ApplicationData(new Uri(ServiceEndPointURL.Text)); HelpDeskServiceReference.Issue issue = new HelpDeskServiceReference.Issue(); issue.Subject = IssueSubject.Text; issue.CreateDateTime = DateTime.Now; issue.TargetEndDateTime = DateTime.Now.AddDays(3); issue.ProblemDescription = IssueDescription.Text; try { srvRef.AddToIssues(issue); srvRef.SaveChanges(); ConfirmLabel.Text = "Issue Created"; IssueSubject.Text = ""; IssueDescription.Text = ""; } catch (Exception ex) { ConfirmLabel.Text = ex.Message; } }