如何封装JS和CSS文件为服务器端控件---ASP.NET 2.0 我们以封装一个JS的日期控件为列子,将它和服务器的TextBox结合在一起做成一个服务器控件,以达到直接托上去就可以使用的效果。其实很简单,大家共同学习。先看看效果图: 方法: 首先:下载一个JS的日期组件,带封装。 然后:建一个日期类文件CalendarBox.cs代码如下: using System; using System.Collections.Generic; using System.ComponentModel
应用说明:页面包含 省市联动 new PCAS("Province","City") new PCAS("Province","City","吉林省") new PCAS("P rovince","City","吉林省","吉林市") 省市地区联动 new PCAS("Province","City","Area") new PCAS("Province","City","Area","吉林省") new PCAS("Province","City","Area","吉林省","松原市") n
dTree is a free Javascr ipt tree menu. There are a lot of tree generating scr ipts just like this one, and many of them are great. So why use dTree? dTree is very simple to set up and use. You don't have to worry about adding pages to the tree in a
不错的日历控件,web上直接可用js的 /* * Calendar * Language 0: Chinese, 1: English * 1.Put calendar into the element html use 'show()' * 2.Pop-up calendar use 'pop()' */ var Calendar = function( instanceId, language, startYear, endYear ){ if( typeof instanceId ==