Hi,
I have a DetailsView associated with an objectdatasource with many rows. I have problems with a row decalred as Template fields. My code looks like
<asp:TemplateField HeaderText="First Name" >
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("FirstName") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="FirstNameID" Runat="server"
Text='<%#DataBinder.Eval(Container.DataItem, "FirstName")%>'/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" Runat="server"
ErrorMessage="You must provide a First Name."
ControlToValidate="FirstNameID"> *</asp:RequiredFieldValidator>
</EditItemTemplate>
</asp:TemplateField>
My Problem is that when trying to update the detailsview. When calling my function the does the update the FirstName is always empty no matter what I put in it. And all the other bound fields look goog
The UpdateParamater section looks like:
<
UpdateParameters >
<asp:Parameter Name="FirstName" Type="String" />
</
UpdateParameters>