S
staeri
I have a gridview which calculates a value in a templatecolumn. I want
to save the calculated value into the database when all the other data
is saved. How can I do that?
As it is now I don't have any code-behind, I'm only using the built-in
ASP.NET 2.0 functions.
The templatecolumn looks like this:
<asp:TemplateField HeaderText="Belopp (kr)"
FooterStyle-Font-Bold="True" HeaderStyle-HorizontalAlign="right"
ItemStyle-HorizontalAlign="right" FooterStyle-HorizontalAlign="Right">
<ItemTemplate>
<%#GetAmount(Decimal.Parse(Eval("UnitPrice").ToString())).ToString("N2")%>
</ItemTemplate>
</asp:TemplateField>
// SE
to save the calculated value into the database when all the other data
is saved. How can I do that?
As it is now I don't have any code-behind, I'm only using the built-in
ASP.NET 2.0 functions.
The templatecolumn looks like this:
<asp:TemplateField HeaderText="Belopp (kr)"
FooterStyle-Font-Bold="True" HeaderStyle-HorizontalAlign="right"
ItemStyle-HorizontalAlign="right" FooterStyle-HorizontalAlign="Right">
<ItemTemplate>
<%#GetAmount(Decimal.Parse(Eval("UnitPrice").ToString())).ToString("N2")%>
</ItemTemplate>
</asp:TemplateField>
// SE