This works for  me in VB.  The secret is location.replace

Private Sub ChangeWindow(ByVal URL As String)
        Response.Write("<script>" & vbCrLf &
"window.parent.location.replace('" & URL & "');" & vbCrLf &
"</script>" & vbCrLf)
    End Sub


On 6/14/05, Stephen Russell <[EMAIL PROTECTED]> wrote:
> I have been doing WIN based systems for a while, ok 15 years, and I need to
> start a simple web app.
> 
> If I have my startup page with image-icons as buttons, how do I code to
> switch the page to "inventory.aspx"?
> 
> I have a javascript that popup blockers defeat.
> 
> string sScript = "<script language=javascript>";
>                         sScript += "window.open('inventory.aspx');";
>                         sScript += "</script>";
>                         //Write it into the output stream for immediate
> execution
>                         Response.Write(sScript);
> 
> TIA
> 
> Stephen Russell
> S.R. & Associates
> Memphis, TN 38115
> 
> 901.246-0159
> 
> http://spaces.msn.com/members/srussell/
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to