K
Keshav Gadia
Hi,
I am an ASP.net newbie.
I am writing a user control that is made up of datagrid with one of
the columns opening a new window to display some details on click of
the set image.
I have basically used ImageButton server control.
The problem is because I have used a server control with
runat="server",the parent page is posted back and even though the
window opens up,the focus gets set to the parent window.
What I want is,the new window should open and the focus should remain
on that window and not the parent window.
I have tried writing javascript to deal with the situation but wasn't
able to achieve what I wanted.
The only thing that comes to my mind is to avoid posting back onclick.
The trouble there is the URL to be used for opening the window has
three parameters and their values come from the server side code.
Please could somebody suggest what can be done so that the focus stays
on the newly opened window.
Many thanks in advance.
Keshav
I am an ASP.net newbie.
I am writing a user control that is made up of datagrid with one of
the columns opening a new window to display some details on click of
the set image.
I have basically used ImageButton server control.
The problem is because I have used a server control with
runat="server",the parent page is posted back and even though the
window opens up,the focus gets set to the parent window.
What I want is,the new window should open and the focus should remain
on that window and not the parent window.
I have tried writing javascript to deal with the situation but wasn't
able to achieve what I wanted.
The only thing that comes to my mind is to avoid posting back onclick.
The trouble there is the URL to be used for opening the window has
three parameters and their values come from the server side code.
Please could somebody suggest what can be done so that the focus stays
on the newly opened window.
Many thanks in advance.
Keshav