zoukankan      html  css  js  c++  java
  • 自定义日历控件

      1using System;
      2using System.Collections.Generic;
      3using System.Text;
      4using System.Web.UI;
      5using System.Web.UI.WebControls;
      6using System.Web.UI.HtmlControls;
      7using System.Drawing;
      8using System.Collections;
      9using System.Collections.Specialized;
     10using System.ComponentModel;
     11/*
     12 * * ExpentDate:日期控件
     13 * * Writor:Susan
     14 * * DateTime:2006/12/18
     15 */

     16namespace CtrolBox
     17{
     18    /// <summary>
     19    /// 日历控件
     20    /// </summary>

     21    public class ExpentDate: WebControl, INamingContainer,IPostBackDataHandler
     22    {
     23        控件属性
     32        属性定义
    166        控件实现
    346    }

    347}

    348注册到专案中(web.config)
    349<pages>
    350    <controls>
    351        <!-- 注册自定义控件 -->
    352        <add tagPrefix="ppmis" namespace="CtrolBox" assembly="CtrolBox"/>
    353        <!-- 注册用户控件 -->
    354        <add tagPrefix="ppmis" src="~/Controls/UnitCtl.ascx" tagName="UnitCtl"/>
    355    </controls>
    356</pages>
    357
    358
  • 相关阅读:
    在C++中使用GDI+绘制带箭头的线,箭头大小可调
    tomcat通过conf-Catalina-localhost目录发布项目详解
    VC++ 获取Windows系统标准字体方法
    简单实现全屏对话框
    采用ATL实现无模板对话框的显示
    C++实现全局鼠标、键盘消息hook,支持事件
    C++ FastDelegate 扩展,实现与.net类似的事件处理功能
    技术研发在国内的现状
    [STM32F103]DMA原理
    [STM32F103]RTC日历
  • 原文地址:https://www.cnblogs.com/freeliver54/p/597199.html
Copyright © 2011-2022 走看看