HELP - Popup Calendar Problem using C# & JavaScript


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: HELP - Popup Calendar Problem using C# & JavaScript

  1. #1
    Join Date
    Oct 2005
    Posts
    1

    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 11: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, 09:22 AM
  2. Popup window - transfer value from...
    By Ramon in forum ASP.NET
    Replies: 5
    Last Post: 02-13-2003, 05:46 PM
  3. A calendar problem
    By Kurt Wayne in forum ASP.NET
    Replies: 1
    Last Post: 06-14-2002, 09:44 PM
  4. problem getting a calendar view using CDO
    By Simon in forum ASP.NET
    Replies: 0
    Last Post: 05-01-2002, 08:31 PM
  5. Replies: 0
    Last Post: 12-13-2001, 01: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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