Re: showModalDialog with an ASP page

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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



.



Relevant Pages

  • showModalDialog with an ASP page
    ... When this cell is clicked, ... The javascript function does the showModalDialog to open the ... prepopulate the calendar control on the new page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: display first or second match instead of #REF in INDEX ROW for
    ... My thought is to insert a row in the calendar sheet where I can ... Formula searches source worksheet for values that match the SUMPRODUCT ... If no match, then cell remains blank. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: calendar pulldown within Excel
    ... making a small calendar popup when they click on the date cell. ... only need to click on a date in the calendar and it will insert it. ... "Jeff Kass, San Diego, CA" <Jeff Kass, San Diego, ... Click Design Mode in Controls group to exit Design Mode and have the ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Multi-line cell formatting
    ... calendar type view on another sheet. ... one cell may have 5 lines representing a mix of open and completed tasks. ... differentiate completed and open tasks by showing open tasks in bold-face ...
    (microsoft.public.excel.programming)
  • Re: Adding Calendar to Worksheet
    ... I have more than one place to enter a date, so I need a calendar to show up ... I want the cell to be emptied based on the value of another cell. ... Private Sub Worksheet_SelectionChange(ByVal Target As Range) ...
    (microsoft.public.excel.worksheet.functions)