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 7776455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:53:19+00:00 2026-06-01T17:53:19+00:00

I am wondering why my Response.Redirect doesn’t work. So basically, I read the files

  • 0

I am wondering why my Response.Redirect doesn’t work. So basically, I read the files in my folder, or exactly the index.html. When I find it i redirect to it .

 foreach (System.IO.FileInfo thefile in fiArr)
        {
            if (thefile.Name == "index.html")
            {
                //Response.Redirect(path + "/index.html", false);
                Response.Redirect("C://inetpub//wwwroot//Folder//" + ((LinkButton)sender).ID,     false);
            }
        }

I am just wondering why this doesn’t redirect anywhere.

  • 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-01T17:53:21+00:00Added an answer on June 1, 2026 at 5:53 pm

    Response.Redirect only support to redirect to a URL beginning with “http://”, a virtual folder located on same server or a file in same folder.

    You could add your folder with files as a virtual folder in the server and redirect to the virtual location of the file.

    Another approach can be to use javascript to do a client side redirect to the file instead.

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

Sidebar

Related Questions

I am wondering when I read a response stream and a timeout occurs, can
Obviously the reader doesn't like this format incoming from the response XML. Wondering if
I'm just wondering what is an ideal output format for the AJAX response? Pure
Wondering if following will work for google in robots.txt Disallow: /*.action I need to
For instance, what I have right now is the following: Page.Response.Redirect(Default.aspx, false); Needing to
I'm wondering how to send custom headers using a redirect, currently with no success.
I was wondering if its possible to redirect a user to a web page
I use ReSharper for VisualStudio and was wondering why a Response would warrant a
I'm wondering if I can return the response header Content-Type: application/json text/json or isn't
I'm wondering if there are any utilities out there that will display the request/response

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.