Item Template only populates the records...
Whereas EditTemplate have update and cancel buttons. we can update delete the records using EditTemplate and
cancel the recent actions by using Cancel Button also
what we can do in itemtemplate not in edititemtemplate?
1. itemTemplate is the default "normal"-mode which is used to show information for the user..Use <%#Eval("myColumn")%> in itemTemplate
2. EditItemTemplate is used when you want to update data. Here you can decide if you want to use textboxes, dropdownlists, checkboxes etc to allow the user to change the data. Use <%#Bind("myColumn")%> in EditItemTemplate
you set the linkbutton(UpdateButton) CommandName property to Update is it because to make the complier understand that when the button will pressed the update command of sql should be fired?
Yes, when a formview/gridview/detailsview etc has a datasource, sush as an sqldatasource-control then its update-command will be fired when using commandName=update
what is the function of CauseValidation property?
If you use validationcontrols to protect lets say a textbox from beeing empty when the button is pressed, the validation will be done before the update/insert/any other server-code is done if CausesValidation-is set to true..
Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif
Rcsp, if this helps please login to Mark As Answer. | Alert Moderator