Building a record insert page (all servers) – Adobe Dreamweaver CS3 User Manual
Page 640
DREAMWEAVER CS3
User Guide
633
Sub Page_Load()
If Not IsPostBack Then
dgName.Visible = falseElse
dgName.Visible = trueEnd IfEnd Sub
where
dgName
is the ID of your DataGrid.
If the page language is C#, enter the following code:
void Page_Load() {
if (!IsPostBack) {
dgName.Visible = false;} else {
dgName.Visible = true;}}
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 master and detail pages (all servers)” on page 614.
Building a record insert page (all servers)
About building record insert pages
Your application can contain a page that lets users insert new records in a database.
For a tutorial on creating a record insert page, see
An insert page consists of two building blocks:
•
An HTML form that lets users enter data
•
An Insert Record server behavior that updates the database
When a user clicks Submit on a form, the server behavior inserts records in a database table.
You can add these building blocks in a single operation using the Record Insertion Form data object or you can add
them separately using the Dreamweaver form tools and the Server Behaviors panel.
Note: The insert page can contain only one record-editing server behavior at a time. For example, you cannot add an
Update Record or a Delete Record server behavior to the insert page.
Build an insert page block by block
You can also build an insert page by using the forms tools and server behaviors.
See also
September 4, 2007