---
title: "Using an Updategram in a Sample ASP Application (SQLXML 4.0) | Microsoft Docs"
ms.custom: ""
ms.date: "03/06/2017"
ms.prod: "sql-server-2014"
ms.reviewer: ""
ms.technology: xml
ms.topic: "reference"
helpviewer_keywords:
- "ASP applications [SQLXML]"
- "Active Server Pages"
- "updategrams [SQLXML], ASP applications"
ms.assetid: 10eff799-4c39-4b52-8b38-7ea6f68454a8
author: MightyPen
ms.author: genemi
manager: craigg
---
# Using an Updategram in a Sample ASP Application (SQLXML 4.0)
This Active Server Pages (ASP) application allows you to update customer information in the Person.Contact table in the AdventureWorks sample database in Microsoft [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)]. The application does the following:
- Asks the user to enter a contact ID.
- Uses this customer ID value to execute a template to retrieve contact information from the Person.Contact table.
- Displays this information by using an HTML form.
The user can then update contact information but not the contact ID (because the ContactID is the primary key). After the user submits the information, an updategram is executed and all the form parameters are passed to the updategram.
The following template is the first template (GetContact.xml). Save this template in the directory that is associated with the virtual name of `template` type.
```