Details View 中 TemplateField <InsertTemplate>从变量取默认值后不允许用更改
<asp:TemplateField HeaderText= "Owner " SortExpression= "Owner ">
<InsertItemTemplate>
<asp:TextBox ID= "txt_Owner " runat= "server " Text = ' <%# Bind( "Owner ") %> ' value= ' <%# ow %> '> </asp:TextBox>
</InsertItemTemplate>
</asp:TemplateField>
希望此字段在每次用户插入记录时不可更改
------解决方案--------------------readOnly属性