c# - Redirect to a different page in a new window -


I am trying to give the user a new browser window and redirect them to a different page. I did it before using it

  ScriptManager.RegisterStartupScript (page, typef (string), "popup", "window.open ('davatim expans', 'ipx', '_blank')", truth );  

This is the thing that the page I'm on is the URL / file path, for example

localhost / protected / admin / allUsers ASPX < / P>

But the page I need to redirect is just

localhost / protected / myPage2.aspx

, so when the window opens, the server throws error It has entered the file path ..

Local Host / Protected / Admin / Accountant Expansion. Espacks

Is there something wrong with my script manager line or is there any way to correctly point out the URL? I would use javascript but it must be done in this way.

Try this one so that localhost / protected / myPage2.aspx open:

  window.open ('../ claim time expansion', '_blank')  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -