mayb eI'm missing something. I still don't see where to trigger this. If what
you say is true then it must be triggered on the parent page. The pop-up is
closed by the user thus returning to that page. I don't know where that
trigger would be since I open the pop-up using:
btnxyz.Attributes.Add("onclick", "window.showModalDialog('../page.aspx',
'Dialog Arguments Value','dialogWidth: 490px; help:0; resizable:no;
center:yes; edge:sunken; status:no')")
also, if you reload on a new form (in my app) you are clearly the options
and field info.
so I'm wondering if there is a way to re-bind the dropdown each time the
dropdown is clicked/touched, thus showing the new option? Or something like
that. I can't do a post back in 1.1 since it will submit the form and I don't
want to do that yet. What I'm trying to do is common in windows forms.
thanx.
"Steve C. Orr [MVP, MCSD]" wrote:
[color=blue]
> The two pages do not exist on the server at the same point in time,
> therefore you must use client side code for this situation.
> The code snippet I gave will cause the parent page to refresh as if the user
> had clicked the reload button. Using client side script you could also
> submit the parent page from the child page, or alter its controls.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
>
http://SteveOrr.net
>
>
>
> "Chris" <Chris@discussions.microsoft.com> wrote in message
> news:E24B455B-73F4-4532-B207-7FD14BEE3937@microsoft.com...[color=green]
> >I assume this is for the form that opened the showmodel pop-up?
> > If so, will this affect any of the fields/values on that form. I'm not
> > performing a post back so I do not want to reset the fields.
> > If on the parent page, where should I launch this?
> >
> > would you know of a code behind method on the form that was popped up? I
> > know framewrok 2.0 has an option to access prevoius pages controls, but
> > I'm
> > using 1.1.
> >
> > thanx.
> >
> > "Steve C. Orr [MVP, MCSD]" wrote:
> >[color=darkred]
> >> This client side javascript should do the trick:
> >>
> >> window.opener.location.reload(true);
> >>
> >> --
> >> I hope this helps,
> >> Steve C. Orr, MCSD, MVP
> >>
http://SteveOrr.net
> >>
> >>
> >> "Chris" <Chris@discussions.microsoft.com> wrote in message
> >> news:A234F0A9-BFDC-4777-9370-DCCE6E81040D@microsoft.com...
> >> >I pop up a Modal form on a web page that allows the user to update the
> >> > selections of a dropdownlist via adding a new item to the db (Sql
> >> > Server).The
> >> > only thing is this list is on the page beneath it. So when the user
> >> > updates
> >> > the db with a new selection, and then closes the form, the page below
> >> > must
> >> > be
> >> > refreshed to see the new option.
> >> >
> >> > Any ideas on adding the new option to the control below the modal form?
> >> >
> >> > thanx.
> >> >
> >>
> >>
> >>[/color][/color]
>
>
>[/color]