当我单击应在文本框中显示的日历时 [英] When i click the calendar that should be displayed in the textbox

查看:63
本文介绍了当我单击应在文本框中显示的日历时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的申请中使用了一个。



任务日期文本框图像按钮



当我点击图像按钮日历应该显示,并在那个日历中我选择哪个日期应该在texbox中显示。



怎么办?
$ b项目日历图片中的$ b

在该文件夹中。



右键单击并选择样式并打开弹出窗口,选择background.in那个图像路径就在那里然后点击确定。



在那个设计图片中没有显示,



wat问题。

i am using one filed in my application.

Task date textbox imagebutton

when i click the imagebutton calendar should be display and in that calendar which date i select that date should be displayed in the texbox.

how to do?

in that project calendar image is in that folder.

right click and choose style and pop window is opened in that choose the background .in that image path is there and click ok.

in that design image is not displayed,

wat problem.

推荐答案

使用此代码,





Use this code,


<asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
                             <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtStartDate"></ajaxToolkit:CalendarExtender>







谢谢,

Bapu




Thanks,
Bapu


问题在于你的代码,你没有发帖。您需要编写接受click事件的代码并显示弹出日历。然后当它关闭时,你需要编写代码将它的值推入文本框。
The problem is in your code, which you did not post. You need to write code that takes the click event and shows a pop up calendar. Then when it closes, you need to write code to push it''s value in to the textbox.


这篇关于当我单击应在文本框中显示的日历时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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