开发者

asp.net calendar

How can I add asp:panel inside Calendar1_DayRender e.Cells so that when there ar开发者_运维技巧e many items in the lists it would make that cells scrollable instead of stretching the calendar.

Thanks In Advance.


public void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
    HtmlGenericControl div = new HtmlGenericControl("div");
    div.ID = "div1";
    div.Attributes["style"] = "overflow:auto; width:100%; height:100%; ";

    StringBuilder temp = new StringBuilder();
    temp.Append("<br />");
    temp.Append("text");

    div.Controls.Add(new LiteralControl(temp.ToString()));
    e.Cell.Controls.Add(div);

}

I've solved my problem using the code above. Thank You.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜