| |

VerySource

 Forgot password?
 Register
Search
View: 760|Reply: 1

Use of calendar control

[Copy link]

2

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2021-3-1 14:30:02
| Show all posts |Read mode
There are several data in the database, with dates, how to make the date be displayed in the calendar control in other colors.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-3-1 22:45:01
| Show all posts
DayRender  look at this event.

Such as:

// Transferred from the results of other netizens.

////Only display the current month date
        //CalendarDay d = e.Day;
        //TableCell c = e.Cell;
        //if (d.IsOtherMonth)
        //{
        // c.Controls.Clear();
        //}

        //if (Request.Params["BlogId"] != null)
        //{
        // if (PostDt.Rows.Count> 0)
        // {
        // DataView PostDv = new DataView(PostDt);
        // PostDv.RowFilter = "CreateDate='" + e.Day.Date.ToString("yyyy-MM-dd") + "'";
        // if (PostDv.Count> 0)
        // {
        // e.Cell.Attributes.Add("onclick", "calendar_go('" + Request.Params["BlogId"].ToString() + "','" + d.Date.ToString("yyyy-MM- dd") + "');");
        //}
        // else
        // {
        // e.Cell.Enabled = false;
        //}
        //}
        // else
        // {
        // e.Cell.Enabled = false;
        //}
        //}
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list