Re: showModalDialog with an ASP page
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 10:41:16 +0200
The easiest way is to add the info to the url as query parameter, like
Calendar.aspx?info=xxx, and access it from code-behind as
Request.QueryString["info"]
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Ralf" <marty.overdear@xxxxxxxxxxxxxx> wrote in message
news:1164144851.975417.42850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- showModalDialog with an ASP page
- From: Ralf
- showModalDialog with an ASP page
- Prev by Date: Re: IIS6.0 vs IIS5.1 - Integrated Windows Authentication Issue
- Next by Date: Re: Hide Panel
- Previous by thread: RE: showModalDialog with an ASP page
- Next by thread: need clarity -- Response.Clear, .ClearHeaders, .Buffer
- Index(es):
Relevant Pages
|