Macromedia dreamweaver 8-using dreamweaver User Manual

Page of 1030
Building pages to update a record (ASP.NET)
915
If the page language is C#, enter the following code:
<script runat="server">
void Page_Load() {
if (!IsPostBack) { 
dgName.Visible = false;
} else {
dgName.Visible = true;
}
}
</script>
3.
Save the page.
Creating a detail page (ASP.NET)
Your search page can include a detail page to display more information about specific records 
listed in the DataGrid. In this situation, the search page acts as the master page in a master/
detail page set. For more information, see 
Building a record insert page (ASP.NET)
You can use Dreamweaver to build a page that lets users insert new records in a database. The 
method you use is identical for all server technologies supported by Dreamweaver. For 
instructions, see 
Building pages to update a record 
(ASP.NET)
Your application can contain a set of pages that lets users update existing records in a database 
table. The pages normally consist of a search page, a results page, and an update page. The 
search and results page let users retrieve the record and the update page lets users modify the 
record.
This section describes the steps to build pages to update a record: