View Single Post
  #10 (permalink)  
Old August 29th, 2010, 07:03 PM
aperezgzlz aperezgzlz is offline
Registered User
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by acdsky View Post
Hi

I have got a page that redirects users depending on their NT group memebership e.g

Case "Group A"
Response.redirect("Y.asp")

I need to redirect some of them to a page and that needs to open in a new window... This does not seem possible with VBS? Maybe add a JS function? Any sugestions welcome

Regards
Marnus

Such is Life!


TRY THIS:


In HTML code:

<script type="text/javascript">
function NewWindow() {
document.forms[0].target = "_blank";
}
</script>

<asp:Button runat="server" ID="btnprint" Text="Open in new window" OnClick="btnprint_Click" OnClientClick="NewWindow();" />


And in the Event Click of the button in vb.code:


Protected Sub btnprint_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("pagina.aspx")

End Sub



=)
Reply With Quote
The Following User Says Thank You to aperezgzlz For This Useful Post: