2 Replies - 18929 Views - Last Post: 13 September 2012 - 01:50 PM

#1 root_hacker  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 15-February 05

ASP Calendar Month view

Posted 25 June 2005 - 12:10 AM

Description: copy paste codeFree for learning
 Ok here is the month view of asp calander written by me and only me
Code start from line below
=================
<%
function tagdates
End function

function drawcalander
'===================== calculating values for drawing calander
if request.QueryString("date")="" then
current_date=date()
else
current_date=request.QueryString("date")
End if
current_month=month(current_date)
current_year=year(current_date)
current_day=day(current_date)
first_day_month=day(dateserial(current_year,current_month,01))
last_day_month=day(dateserial(current_year,current_month+1,1-1))
weekday_monthfirst=weekday(dateserial(current_year,current_month,01))
weekday_today=weekday(dateserial(current_year,current_month,current_day))
'======================================
'response.write "
current date ="¤t_date&"
"
'response.write "
current month ="¤t_month&"
"
'response.write "
year ="¤t_year&"
"
'response.write "
todays date ="¤t_day&"
"
''response.write "
first day of month ="&first_day_month&"
"
'response.write "
last day of month is ="&last_day_month&"
"
'response.write "
weekday position of first day="&weekday_monthfirst&"
"
'response.write "
weekday position of todayss day="&weekday_today&"
"
' response.write "
first day of fiven week is="&dateadd("d",-(weekday_today-1),current_date)&"
"
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
response.write ""
for i=1 to 7
if i>weekday_monthfirst-1 then
response.write ""
else
response.write ""
End if
next
for j=1 to 5
response.write ""
for i=1 to 7
if days"
response.write days
response.write ""
End if
Next
response.write ""
Next
response.write ""
response.write "
" response.write "<< " response.write monthname(current_month)&", "¤t_year response.write " >>" response.write "
" response.write "S" response.write "" response.write "M" response.write "" response.write "T" response.write "" response.write "W" response.write "" response.write "Th" response.write "" response.write "F" response.write "" response.write "Sa" response.write "
" days=days+1 response.write days response.write "" response.write " " response.write "
" End function function najam 'response.write "inside function" a="najam is great" najam=a end function %> <% a=najam drawcalander %>


Is This A Good Question/Topic? 0
  • +

Replies To: ASP Calendar Month view

#2 Kavita Doshi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 04-June 09

Re: ASP Calendar Month view

Posted 04 June 2009 - 08:50 PM

It's really useful mi in future, as i think to put calendar view. Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 arvind_shrivas  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 13-September 12

Re: ASP Calendar Month view

Posted 13 September 2012 - 01:50 PM

good
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1