asp.net 中如何点空间后出现Calendar

来源:百度知道 编辑:UC知道 时间:2024/05/21 11:54:24
我有个页面控件 我想再控件的onclick事件中 写段代码 可以让我 一点那个控件就出来 Calendar 是个日期控件 我可以在里面选日期 谢谢

那要看你的日期控件里有没有方法!有的话直接onclick='javascript:'就可以了。一般情况函数已经写在控件里了。..要的话我发一个给你。
这里是我自己的日期控件和实现核心代码:
调用日期控件函数:
function popUpCalendarTR(ctl, ctl2, format) {
var leftpos=0;
var toppos=0;

if (bPageLoaded)
{
if ( crossobj.visibility == "hidden" ) {
ctlToPlaceValue = ctl2;
dateFormat=format;

formatChar = " ";
aFormat = dateFormat.split(formatChar);
if (aFormat.length<3)
{
formatChar = "/";
aFormat = dateFormat.split(formatChar);
if (aFormat.length<3)
{
formatChar = ".";
aFormat = dateFormat.split(formatChar);
if (aFormat.length<3)
{
forma