This is a migrated thread and some comments may be shown as answers.

Compilation error in edit form template

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 28 Jul 2009, 03:19 PM
HI

I have this code in a button in an edit form template

           <asp:Button ID="btnUpdate" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>' 
 
                                        runat="server" CommandName='<%# Iif(TypeOf Container is GridEditFormInsertItem, "PerformInsert" , "Update" ) %>'>  
                                    </asp:Button> 
and it doesnt appear to be working as the button doesn't have any text or a command property. Please can you tell me what i'm doing wrong


many thanks

1 Answer, 1 is accepted

Sort by
0
andieje
Top achievements
Rank 1
answered on 28 Jul 2009, 10:12 PM
I fixed this. Thanks
Tags
Grid
Asked by
andieje
Top achievements
Rank 1
Answers by
andieje
Top achievements
Rank 1
Share this question
or