asp事件日历((帮助代码) [英] asp event calender ((help with the code)

查看:68
本文介绍了asp事件日历((帮助代码)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我拖曳使用2008版的ASP压光机
我想制作一个事件日历,突出显示日期,当您将鼠标放在其上时,事件将出现((事件的名称))
我找到了此代码

Hi I drag the asp calender I am using 2008 version
I want to make an event calender that highlight the days and when you put the mouse over it the event will appear ((The name of the event))
I found this code

Private Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles Calendar1.DayRender
        Dim day As CalendarDay = e.Day
        Dim cell As TableCell = e.Cell
        Dim lblEvent As New Label()
        Select Case day.Date
            Case #2/10/2011#
                lblEvent.Text = "party"
                cell.Controls.Add(lblEvent)
                cell.BackColor = Drawing.Color.Red
            Case #2/14/2011#
                lblEvent.Text = "holiday"
                cell.Controls.Add(lblEvent)
                cell.BackColor = Drawing.Color.DarkOrange
            Case #2/28/2011#
                lblEvent.Text = "3rd event"
                cell.Controls.Add(lblEvent)
                cell.BackColor = Drawing.Color.DarkOrange
        End Select
    End Sub


我不想将表添加到数据库中
我希望管理员单击一个按钮,允许他编辑单元格而无需更改代码.

谁能帮助我.


I don''t want to add the table to the database
and I want the admin to click a button that allow him to edit the cells without changing the code.

Can anyone help me.

推荐答案

[ ^ ]可能会帮助您.
this[^] might help you.


这篇关于asp事件日历((帮助代码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆