Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

opening url in new browser...but url is along a different directory structure

Posted on 2009-05-11
1
Medium Priority
?
194 Views
Last Modified: 2012-05-06
I have some code I can use to open a url in a different browser window

Response.Write("<SCRIPT language=javascript>var w=window.open('Report.aspx');</SCRIPT>");

But the aspx "report.aspx" is actually along a different directory path. Its a couple of levels lower and one level up the tree.

('~/Utils/Reports/Report.aspx');

but using that structure doesnt work in teh above example.

So anyone knwo HOw I can open the url with the diferent path like in teh above example.

I cant put in a static http: url because it changes depending on teh enviornment the app is installed in.
0
Comment
Question by:Prysson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
GuitarRich earned 2000 total points
ID: 24356203
try this
Response.Write("<SCRIPT language=javascript>var w=window.open('" + ResolveUrl("~/Utils/Reports/Report.aspx") + ');</SCRIPT>");

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question