Hi Brenden,
I'm not sure if this is what you're after, but it was a fun little project.
If it's what you're after, let us know?
Ken
Microsoft MVP [ASP.NET]
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<script runat="server">
Protected Sub Page_Load _
(ByVal sender As Object, _
ByVal e As System.EventArg s)
Dim dt As DateTime
dt = Now
Calendar1.Visib leDate = dt
Calendar1.Selec tedDate = dt
End Sub
Public Shared Function Week _
(ByVal tdDate As System.DateTime ) As Integer
Dim myCI As New Globalization.C ultureInfo("en-US")
Dim myCal As Globalization.C alendar = myCI.Calendar
Dim myCWR As Globalization.C alendarWeekRule = _
myCI.DateTimeFo rmat.CalendarWe ekRule
Dim myFirstDOW As DayOfWeek = _
myCI.DateTimeFo rmat.FirstDayOf Week
Return myCal.GetWeekOf Year(tdDate, myCWR, myFirstDOW)
End Function
Protected Sub Calendar1_DayRe nder _
(ByVal sender As Object, _
ByVal e As System.Web.UI.W ebControls.DayR enderEventArgs)
If Week(e.Day.Date ) <> Week(Calendar1. SelectedDate) Then
e.Cell.Text = ""
End If
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:calendar id="Calendar1" runat="server"
ondayrender="Ca lendar1_DayRend er"></asp:calendar>
</div>
</form>
</body>
</html>
"Brenden Bixler" <Br***********@ discussions.mic rosoft.com> wrote in message
news:8E******** *************** ***********@mic rosoft.com...
Hello.
I am using the ASP.NET calendar object and am looking to provide a "weekly
view", but not the typical "Outlook" style. Rather, I just want it to
render
the calendar normally, but only display the current week and not any of
the
other weeks within the given month.
If this isn't possible with the built-in component, has anyone else solved
this issue with a third party component?
Thanks in advance.