<insertitemtemplate> <asp:TextBox ID="tdate1" runat="server" Text='<%# Bind("To_Date") %>'></asp:TextBox> </InsertItemTemplate> <InsertItemTemplate> <asp:TextBox ID="fdate2" runat="server" Text='<%# Bind("From_Date") %>'></asp:TextBox> </InsertItemTemplate>
Dim tdate, fdate As Date 'Where tdate1 &fdate2 are controlID's in the detailsview tdate = tdate1.date fdate = fdate2.date Dim ts As TimeSpan = tdate.Subtract(fdate)
Dim tempTxtSome As TextBox = CType(myDetailView.FindControl("txtSome"), TextBox)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)