Thursday, December 02, 2004

EditItemTemplate column

one advantage of using EditItemTemplate is that you can put some thing in the normal template column and another format in the edit template column. for example, show some texts in normal view, but change to a drop down menu when editing.
example:



<%#DataBinder.Eval(Container.DataItem,"SmtpServerType")%>




ISP Hosted
Exchange
Sendmail
Domino
Groupwise
IMail
Mailsite
Other - UNIX
Other - Windows
Unknown




when use textbox in the edittemplate column, I need to assign "Text" attribute in textbox, althought it seems like there is no "Text" attribute select from the list
for example:

'>




No comments: