Tuesday, March 13, 2012

Target=_black problem

Hi,

I have to button in my page.

following is the code is

<asp:ButtonID="btn_search"runat="server"OnClick="btn_search_Click"ValidationGroup="btn"ToolTip="Show Report"PostBackUrl="~/RptIndent.aspx"OnClientClick="form1.target='_blank'"/>

<asp:ButtonID="btn_Logout"runat="server"OnClick="btn_Logout_Click" ToolTip="Log out" />

problem is what, i have written on btn_Search onClientClck="form1.target='_blank'">

so it open the report in new window.

bt after if i click on logout button it opens login page in a new window !!!

what is this problem.

Can anybody help me out

It' s urgent !!!

-Sandeep

Surely that should be expected?! You've set the target attribute of the form to open in a new window so of course all requests will follow this target. If you are going to change it for one button, you will have to change it back for those where you don't want this behavior.


Hi,

I understand the thing .

but thing is what i have user control on my web page.

user conrtrol contains logout link button.

in page i have show report button. when i click on show report it opens a new window and show the report.

i close it and click on logout on parent page. it redirect me to login page with a new window.

what to do...

it's an urgent

-Sandeep

0 comments:

Post a Comment