Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Regarding visibility of a templated control and built-in events

Thread Tools

Regarding visibility of a templated control and built-in events

Posts: n/a
Hello all:

I have a dropdownlist bound to a datasource with a formview underneath it
set to a default mode of insert. On initial load, the formview's container
(div) is hidden and there is a link button that, when clicked, shows the
formview for the purpose of creating new a record. In the formview's insert
template, there is a linkbutton with the command name set to 'Cancel'. The
intended goal here is to cancel the formview's pending insert, hide it's
parent container and basically restore the form to its initial state.

When the cancel button is clicked, I process its 'ItemCommand' event, set
the visibility of the relevant controls and restore the form to its original
state. There is a problem. It appears that by processing the ItemCommand
and changing the visibility of the parent div, the formview's insert item
template fields don't get cleared (restored) after either a cancel or an

Obviously I can work around this with little to no trouble, but I am curious
why it happens. Anyone have any ideas?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wizard control: programmatically set visibility of (Templated)WizardStep Michel Couche ASP .Net 0 10-20-2006 09:41 AM
templated function as parameter of another templated function Amadeus W. M. C++ 2 07-04-2006 09:59 PM
ASP.NET Templated User Controls - Limit child controls allowable within a templated control ASP .Net 0 05-29-2006 06:00 PM
Subtypes of templated types (in templated functions) Marijn C++ 5 02-13-2004 09:50 AM
implementing a templated struct within a templated struct RA Scheltema C++ 3 01-06-2004 11:25 AM