> 1.) when edit mode, the textbox can validate before edit, e.g. if the
> fields
> is required field, user need to fill in something before edited
use TemplateField with a TextBox and a RequiredFieldValidator linked to it.
> 2.)some field are bound with drop-down list value(get from db), when it is
> edited, it can be drop-down list
again, use TemplateField with a DropDownList which has DataSource and
SelectedValue properties set accoding to the item beeing edited.
>
> 3.) when user clicks delete, popup a javascript box to comfirm, before
> delete
inject a client-side script into the button's "onclick" attribute to prevent
posting back.
if ( !window.confirm( "Are you sure that you want to delete selected
item?" ) ) return false;
Regards,
Wiktor Zychla
|