Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my website need to show a registration page. Now Normally used as response.redirect"pagename");
But Now I need to show that page in new browser window onclick of a linkbutton.
Posted

Problem resolved by use

Onclick of link button.

code
XML
<script type ="text/javascript"  language="javascript">
function fun(){
window.open('FrmCustForm.aspx','PoP_Up','width=450,height=270,menubar=no,toolbar=no,resizable=yes,fullscreen=1');
}
</script>
 
Share this answer
 
Add this JAVA script to th aspx pge and set the Button or link wat ever u taken add the event named

"onclick=returnopenWindow();"
function openWindow()
{
    window.open('FrmReg.aspx','_blank'); 
    return true;
}
 
Share this answer
 
v2
 
Share this answer
 
v2
Put target="_blank" in your link, and it will open the page as a new window.
 
Share this answer
 
Comments
vipinsethumadhavan 2-Jul-11 2:15am    
Ya I used as
Linklogout.Attributes.Add("onclick", "window.open('FrmReg.aspx','_blank'); return true;");
But It is also show as normal. Not in next browser window. It is only in new Tab of browser
Christian Graus 2-Jul-11 2:24am    
Well, that's because you have a tabbed browser. I don't know that you can change that.

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