<%
// Display server-side errors that may have occured.
var UserAdapter = Modules.PhotoData.Users;
e = new Enumerator(UserAdapter.Errors)
if (!e.atEnd())
{
Response.Write('
The following error(s) happened with Users:');
for (; !e.atEnd(); e.moveNext())
Response.Write("
" + e.item().Message)
}
var Categories = Modules.PhotoData.Categories;
e = new Enumerator(Categories.Errors)
if (!e.atEnd())
{
Response.Write('The following error(s) happened with Categories:');
for (; !e.atEnd(); e.moveNext())
Response.Write("
" + e.item().Message)
}
%>
|
Modify Categories
|
| Category ID |
Category Name |
|
<%
// Shortcuts to the categories fields; this speeds up processing of the script.
Categories_CAT_NAME = Categories.CAT_NAME;
%>
<%
// Add the option to insert a new category
// Notice how __act is set to the NewRow as the action.
Categories.Mode = 'Insert';
%>