samsmithnz Posted January 23, 2004 Posted January 23, 2004 I don't have enough room on my asp page for a full calender control, so I've decided to add a button that opens the calender control in a little popup window. I'd like to click the button and then call a function to open the window (that is only big enough for a label and the calender), let the user select a date, then close the window, returning the date back to the textbox beside the button. How on earth do I go about doing this in asp.net? I thought about using javascript, but I really need to return the date, so I think i have to keep it all client side... Quote Thanks Sam http://www.samsmith.co.nz
kahlua001 Posted January 23, 2004 Posted January 23, 2004 You can use an asp.net calendar control in your popup window, after user selects the date, write out javascript to close the window,and send the value back to the parent window. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=77690 Quote
samsmithnz Posted January 23, 2004 Author Posted January 23, 2004 Thats cool. You should submit that in the Knowledge base. Quote Thanks Sam http://www.samsmith.co.nz
samsmithnz Posted January 23, 2004 Author Posted January 23, 2004 One more question... How do I move the data between the clientside and serverside stuff? Like I click on the image on page one to display my calendar, then I click on the calendar, where more control detects I've selected a date and closes the window, causing the javascript to check the value of the calender control and put the value into a textbox on the first web page. *WHew* Isn't there a better/ easier way??? Quote Thanks Sam http://www.samsmith.co.nz
Moderators Robby Posted January 24, 2004 Moderators Posted January 24, 2004 Sam, have a look at my Calender sample, I have some client/server data going back and forth. Quote Visit...Bassic Software
samsmithnz Posted January 24, 2004 Author Posted January 24, 2004 Hey Robby, that is EXACTLY what I need. Cheers big ears ;) Quote Thanks Sam http://www.samsmith.co.nz
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.