ShowUsYour<Blog>

Irregular expressions regularly

What CommandName's to use in a FormView

taken from Fredrik's blog:


Paging:

 

Next

Prev

First

Last

 

The FormView has support for paging so we don’t really need to add button controls for those commands. We only need to use those if we want to create our own custom paging.

 

For changing modes:

 

New

Cancel

Edit

 

The New command will change the mode of the FormView to the Insert mode. The Cancel will turn back the mode to its default mode. The Edit will turn the mode into Edit mode.

 

For actions:

 

Insert

Delete

Update

 

When we press a button with the Insert command specified the FormView will execute the associated DataSource control’s InsertCommand. If the CommandName of the button is set to Delete or Update the DataSource’s DeleteCommand or UpdateCommand will be executed. By default the SelectCommand of the DataSource control will be executed.

Posted: Apr 02 2005, 07:31 AM by digory | with 3 comment(s)
Filed under: ,

Comments

Sameen said:

I want to make a duplicate button, any idea?

# May 16, 2007 2:45 PM

SameenIsALeach said:

Sameen, you are just a worthless leach. You should try learning to programming -before- getting a job as a developer. Crazy idea no?

# March 9, 2009 2:12 AM

Sergio said:

Thanks Fredrik. You were an excellent help with this.

# June 29, 2009 6:38 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)