Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have used calenderExtender of ajax.And it is workng good.Now I have to do like this..

when I click on date_textbox, calender will be pop-up same as calenderExtender.
how to do this?
Posted
Updated 3-Jan-13 22:12pm
v2

Hi,

Try setting the PopUpButtonId of CalanderExtender as your TextBox ID.
Try this:
ASP.NET
<ajaxtoolkit:calendar runat="server" xmlns:ajaxtoolkit="#unknown">
    TargetControlID="TextBox1"
    CssClass="ClassName"
    Format="MMMM d, yyyy"
    PopupButtonID="TextBox1" /></ajaxtoolkit:calendar>


--Amit
 
Share this answer
 
Comments
Member 9511889 4-Jan-13 5:47am    
i have to pop-up calender image and textbox both.Not only textbox or not only calender image
Member 9511889 4-Jan-13 5:47am    
then what i have to do?
_Amy 4-Jan-13 5:54am    
Then onclick of Textbox call a javascript fnction and show the calendar.
set
C#
TargetControlId="Textbox1"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900