Hi all,
I am working with calendar control and when the user select the year from the link i create for calendar control i do not want them go beyond the year 2007. how can this be done. thanks for the help.
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<script runat="server">
Sub calEventDate_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
StartDateStr.Text = calEventDate.SelectedDate.ToString("d")
calEventDate.Visible = False
End Sub
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
calEventDate.Visible = True
End Sub
</script>
<html xmlns=" >
<head>
<title>Calendar </title>
</head>
<body>
<form id="form1" runat="server">
<asp:TextBox id="StartDateStr" Runat="server" Style="width:190px" />
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Calendar</asp:LinkButton>
<asp:Calendar id="calEventDate" OnSelectionChanged="calEventDate_SelectionChanged" Visible=False Runat="server" />
</form>
</body>
</html>
I am working with calendar control and when the user select the year from the link i create for calendar control i do not want them go beyond the year 2007. how can this be done. thanks for the help.
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<script runat="server">
Sub calEventDate_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
StartDateStr.Text = calEventDate.SelectedDate.ToString("d")
calEventDate.Visible = False
End Sub
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
calEventDate.Visible = True
End Sub
</script>
<html xmlns=" >
<head>
<title>Calendar </title>
</head>
<body>
<form id="form1" runat="server">
<asp:TextBox id="StartDateStr" Runat="server" Style="width:190px" />
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Calendar</asp:LinkButton>
<asp:Calendar id="calEventDate" OnSelectionChanged="calEventDate_SelectionChanged" Visible=False Runat="server" />
</form>
</body>
</html>