>There's no way you can do that.
>Remember that you're working with HTML, not a programming language.
Yeah, this is sometimes difficult to understand. All want to move to HTML as it is the buzz word, but it's like going back 10 years old in development. :)
>What you must do is to place the control in a page along with a HTML form, a Submit button and a hidden HTML text box.
>Add script that read the property when the user click the submit button and pass the value to the hidden textbox. The Submit button will then send the info with the Post or Get method.
I'm not sure this will fit my needs. What I need to do is to have a simulation as a pick list. From my form, whenever we'll have a date field, which is a textbox in HTML, we will put a ... button next to it. Clicking on that button will show a calendar. When clicking Ok from that calendar, the value should be returned to the form.
The calendar form should be modal and this is not possible to do with HTML.
We also need to return the value to the main page.