Thursday, March 22, 2012

Modal Dialog

Hi Experts,
I am having a serious problem now. I am using IE for developing my asp.net
application. My application need not run in Netscape. I have a peculiar
problem. I have an aspx page from which when the user clicks on the save
button, I am calling a javascript function which shows up a modal dialog
box. I want the user to do certain varifications before the save. Inside the
modal dialog, I have a datagrid which has a template column containing a
LinkButton. I have written code in the Oncommand event of the link button.
However, when the I click on the linkbutton, I get a new dialog box and I
get a client side error.
If I use a button insted, I dont get an error but the same page is opened in
another window. I cannot use a non modal dialog since I want to return some
values to the calling page. and proceed furthur from that page without user
intervention.
Has anybody faced such a problem. Please Help
Thanks in advance
Regards
GaneshGanesh,
Just put a line
<base target=_self>
in the <Head> section of the page shown in the modal window.
Eliyahu
"Ganesh Ramamurthy" <ganesh@.kottsoftware.com> wrote in message
news:etrzdzG2EHA.924@.TK2MSFTNGP14.phx.gbl...
> Hi Experts,
> I am having a serious problem now. I am using IE for developing my asp.net
> application. My application need not run in Netscape. I have a peculiar
> problem. I have an aspx page from which when the user clicks on the save
> button, I am calling a javascript function which shows up a modal dialog
> box. I want the user to do certain varifications before the save. Inside
the
> modal dialog, I have a datagrid which has a template column containing a
> LinkButton. I have written code in the Oncommand event of the link button.
> However, when the I click on the linkbutton, I get a new dialog box and I
> get a client side error.
> If I use a button insted, I dont get an error but the same page is opened
in
> another window. I cannot use a non modal dialog since I want to return
some
> values to the calling page. and proceed furthur from that page without
user
> intervention.
> Has anybody faced such a problem. Please Help
>
> Thanks in advance
> Regards
> Ganesh
>
>

0 comments:

Post a Comment