Hi guys,
Am new in this field,
How can I program a text-box in a details-view template to perform a certain function??
Protected Sub LinkButton1_Click1(ByVal sender As Object, ByVal e As System.EventArgs)
Dim tdate, fdate As Date
tdate = Textbox2
fdate = Textbox3
Dim ts As TimeSpan = tdate.Subtract(fdate)
Dim days As Integer = ts.Days
MsgBox(days)
If days <= 1 Then
'display label
Label3.Visible = True
ElseIf days = 30 Then
'display label
Label4.Visible = True
Else
Response.Redirect("Leave_details.aspx")
End If
End Sub
This is the code behind the details view.
I will highly appreciate your help.
Larsh.