R
Ralf
Here is my scenerio and what I am doing. I am open to other ways of
doing this is it makes sense. I have a cell withing a row within a
datagrid. When this cell is clicked (its a date field), I want a
calendar to pop up to change the date. So, I had to added an onclick
event to the cell, which runs a javascript function when it the click
happens. The javascript function does the showModalDialog to open the
Calendar.aspx page and pass in the date field that was in the cell to
prepopulate the calendar control on the new page.
window.showModalDialog('Calendar.aspx',info); //info had the date to
pre-populate
On the new page, how do I get the pre-populated date to my code behind?
I added a HTML button to the modal page and wrote the script to click
the button to activate the event to get into my code behind. But, how
do I get the value 'info' that was passed over to open the dialog
Calendar window? I read where it said to use window.dialogArguments,
but I couldn't get that to work at all, it doesn't recognize it. And
since that is in the javascript, how would I get it to the code behind?
Any insight is appreciated
doing this is it makes sense. I have a cell withing a row within a
datagrid. When this cell is clicked (its a date field), I want a
calendar to pop up to change the date. So, I had to added an onclick
event to the cell, which runs a javascript function when it the click
happens. The javascript function does the showModalDialog to open the
Calendar.aspx page and pass in the date field that was in the cell to
prepopulate the calendar control on the new page.
window.showModalDialog('Calendar.aspx',info); //info had the date to
pre-populate
On the new page, how do I get the pre-populated date to my code behind?
I added a HTML button to the modal page and wrote the script to click
the button to activate the event to get into my code behind. But, how
do I get the value 'info' that was passed over to open the dialog
Calendar window? I read where it said to use window.dialogArguments,
but I couldn't get that to work at all, it doesn't recognize it. And
since that is in the javascript, how would I get it to the code behind?
Any insight is appreciated