asked on
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
ASKER
In the RowUpdating Event I'm doing a calculation referencing one of the readonly columns and am getting Zero for the readonly item.
In code below, "LastMeter" is ReadOnly and "MeterInput" and "UsageInput" are editable.
How do I get value of "LastMeter" during Update if it's ReadOnly??
Lee
Private Sub GridView1_RowUpdating(ByVa
If e.NewValues("MeterInput") > e.NewValues("LastMeter") Then
e.NewValues("UsageInput") = e.NewValues("MeterInput") - e.NewValues("LastMeter")
End If
End Sub
End Class