DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2005

    HELP - Popup Calendar Problem using C# & JavaScript

    I've found 1001 examples of a popup Calendar on the web, unfortunately these are all using ASP.NET/C#/JavaScript.
    I need an example using only C#/JavaScript, can anyone help?


    I've tried converting the ASP.NET parts to C# but I believe I encounter problems converting the onclick="calendarPicker('Form1.txtEventDate');" part.

    This results in the line...

    Link.Attributes.Add("href", String.Format("JavaScript:window.opener.document.{0}.value = \'{1:d}\'; window.close();", Request.QueryString["field"] , e.Day.Date));

    ...not populating the {0} correctly.

    [ASP.NET example attached]

    Added 4th Nov 2005

    Hmm, I thought popping up a window and passing a variable to/from it would be pretty straight forward as in other languages.

    Apparantly not.
    Attached Files Attached Files
    Last edited by TotalNovice; 11-04-2005 at 10:28 AM. Reason: Further Comments

Similar Threads

  1. Hai how to Display text in a Calendar Control
    By itchock in forum VB Classic
    Replies: 0
    Last Post: 06-26-2005, 08:22 AM
  2. Popup window - transfer value from...
    By Ramon in forum ASP.NET
    Replies: 5
    Last Post: 02-13-2003, 04:46 PM
  3. A calendar problem
    By Kurt Wayne in forum ASP.NET
    Replies: 1
    Last Post: 06-14-2002, 08:44 PM
  4. problem getting a calendar view using CDO
    By Simon in forum ASP.NET
    Replies: 0
    Last Post: 05-01-2002, 07:31 PM
  5. Replies: 0
    Last Post: 12-13-2001, 12:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.