从弹出窗口中读取日期 [英] reading date from popup window

查看:71
本文介绍了从弹出窗口中读取日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个不同的文本框我想用不同的日期填充这些文本框



如何使用popUp窗口填充日期,其中包含日历控件

i have three different textboxs i want to fill these textboxs with different dates

how to fill date using popUp window which containing the calender control

推荐答案

为日历控件编写事件。

为3个文本框,你必须创建三个日历控件并使用下面的事件将selectedDate放入textBox 。



Write the event for calender control.
for 3 textbox ,you have to create threee calender control and use the below event to get the selectedDate into the textBox.

protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
   
    TextBox1.Text = Calendar1.SelectedDate.ToString();
}









您还可以这样使用在您的源页面上 -



document.getElementById(''textbox1'')。value = calendarControl.getDate();



希望它有所帮助。





You can also use like this on your source page-

document.getElementById(''textbox1'').value = calendarControl.getDate();

Hope it helps.


这篇关于从弹出窗口中读取日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆