Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8494905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:25:30+00:00 2026-06-10T23:25:30+00:00

Trying to put together a quick and dirty page to redirect to another website

  • 0

Trying to put together a quick and dirty page to redirect to another website in a new window.

So I stash a url in the session, redirect to the page from mvcSiteMap, hit the page…

run this javascript

    $(document).ready(function () {
        window.open( '@HttpContext.Current.Session["EisUrl"].ToString();' );
    });


</script>

}

and instead of opening a new window pointing to google.com, I get the same window with this message.

The view ‘http://google.com&#8217; or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/ReportsManagement/http://google.com.aspx
~/Views/ReportsManagement/http://google.com.ascx
~/Views/Shared/http://google.com.aspx
~/Views/Shared/http://google.com.ascx
~/Views/ReportsManagement/http://google.com.cshtml
~/Views/ReportsManagement/http://google.com.vbhtml
~/Views/Shared/http://google.com.cshtml
~/Views/Shared/http://google.com.vbhtml

So it’s treating my external URL as if it’s still internal to the website…

This seems like it ought to be pretty simple….. clearly I’m missing something obvious.

Any Help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:25:31+00:00Added an answer on June 10, 2026 at 11:25 pm

    I figured it out, i was being an id 10 t,

    I had this in the view(razor)

    @model string
    

    and this in the controller

    public ActionResult GetEisReportRedirect()
            {
                string url =  eisReportBLLHdl.DoGetEisReportRedirect(  );
    
                return View( url );// i was passing url here to the view
            }
    

    So it’ was trying to pass the string as a model, I decided i was unsure of the exact behavior and swapped to putting it in the session.. but left those in place.

    For some reason, the string was getting interpteted as a URL, the fact that the new window was not openeing should have been a clue it was going off the rails early.

    When I removed the line from the model and the url paramter from the return View()… it now redirects correctly (just not in a new page but I’ll get that)

    Thanks for all the help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to put together a custom user update page so you can update
I am trying to put together a page that has a header that spans
I am trying to put together an XML document from several pieces. To get
I am new to active directory and I am trying to put together a
Having some trouble trying to put together a page where images are placed properly.
Right now I'm trying to put together something really simple, learn from it, and
I am currently trying to put together a simple Illustrator plugin, and coming from
I am trying to put together a page which contains several tables with data.
I'm currently trying to put together a rich text editor that includes widgets from
I'm trying to put together a batch file, that will ping a website, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.