IE7 does not open folders

Discussion in 'C#' started by cthang, Feb 9, 2007.

  1. #1
    Hi,

    I have a asp program which works fine in IE6 and now it does not work in IE7.

    The problem is that IE7 does not like going to a folder and I just get an error stating that this web page cannot be display.

    Here is part of the code that makes the call to the folder.



    Select Case objRecordset.RecordCount
    Case 0
    Response.Write "<BR>No Matches found"
    Case 1
    sUserName = objRecordSet.Fields("samaccountname")
    sLocation = objRecordSet.Fields("department")
    sLocationCode = GetSchoolCode(sLocation)
    If sLocationCode <> "xx" then
    sHomeFolderPath = "file://" & sLocationCode & "-ovr-dc-1/users/students/" & sUserName
    Response.Redirect sHomeFolderPath

    Else
    Response.Write "<BR>Error: unable to determine location code."
    End if
    Case Else
    Response.Write "<BR>Error: found multiple AD accounts with this student number."
    While Not objRecordSet.EOF
    for each oField in objRecordSet.Fields
    Response.Write "<BR>Match:" & objRecordSet.Fields(oField.Name).Value
    next
    objRecordSet.MoveNext
    Wend

    End Select

    Any help will be great.



    Thanks
     
    cthang, Feb 9, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Might be a permission setting on IE7 that sees anything "file://" from a webbrowser as a security risk.
     
    ccoonen, Feb 12, 2007 IP
  3. cthang

    cthang Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    could you tell me were i would be able to change that setting?
     
    cthang, Apr 5, 2007 IP
  4. jimrthy

    jimrthy Guest

    Messages:
    283
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If that's really the problem, then you can't. It's up to the end-user.

    I hate having to support IE.
     
    jimrthy, Apr 14, 2007 IP