Click here to Skip to main content
15,888,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am using a link button.On clicking on Link Button A new page should appear as a popup window and the previous page should appear.Actually i am using following code. but it does not work.
XML
<td>
     <asp:LinkButton ID="myButton" runat="server" Text="Click Me!" OnClick="Click" OnClientClick="aspnetForm.target ='_blank';"/>
   </td>
Posted

Hi Supriya,
Go through the following-
How To Open a Web Page In a New Browser ASP.NET?[^]
 
Share this answer
 
Hi!

Try the following code to open particular page of your Site :
C#
<asp:linkbutton id="myButton" runat="server" onclientclick="javascript:window.open('login.aspx','','width=700px, height=450px, ');return false;" xmlns:asp="#unknown">Click Me!</asp:linkbutton>


Try the following code to open particular Site :
C#
<asp:linkbutton id="myButton" runat="server" onclientclick="javascript:window.open('http://www.accuwebhosting.com/','','width=700px, height=450px, ');return false;" xmlns:asp="#unknown">Click Me!</asp:linkbutton>


Regards.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900