Advertisement

02.15.2008 at 09:00PM PST, ID: 23167978
[x]
Attachment Details

how to open a calendar window, select date and close window

Asked by dshi15 in Programming for ASP.NET, JavaScript

I have a region dropdown list and startdate text box on an asp.net 2.0 form. When user click on the image next startdate text box, the calendar window will show and let user select date, then I want date selected to write  back into startdate text box and close calendar window. How to do it? please provide code.

I have partial code.

<asp:TextBox ID="tbStartDate" runat="server"></asp:TextBox><img id="imglStartDate" src="../images/calendar_icon.gif" style="position: relative" alt="Calendar" language="javascript" onclick="return imglStartDate_onclick()" width="20" height="19" />


function imglStartDate_onclick() {
    newwindow=window.open('dateselect.aspx','datewin','height=300,width=300');
      if (window.focus) {newwindow.focus()}

}

Thanks in advance.Start Free Trial
[+][-]02.15.2008 at 09:44PM PST, ID: 20908408

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, JavaScript
Sign Up Now!
Solution Provided By: digitalZo
Participating Experts: 2
Solution Grade: B
 
 
[+][-]02.15.2008 at 10:24PM PST, ID: 20908489

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.16.2008 at 07:22PM PST, ID: 20912451

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628