Problem occur after file export

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dorothywtkhk
    New Member
    • Dec 2007
    • 1

    #1

    Problem occur after file export

    Dear All,

    I got a problem with the following case: I would like to enable a button after the file export (using asp.net), the code is:

    Dim fi As System.IO.FileI nfo = New System.IO.FileI nfo(strPath)
    Response.Clear( )
    Response.AddHea der("Content-Disposition", "attachment;fil ename=" + fi.Name)
    Response.AddHea der("Content-Length", fi.Length.ToStr ing())
    Response.Conten tType = "Text Documents (*.txt)"
    Response.WriteF ile(fi.FullName )
    Response.Flush( )
    btnXXX.enable=t rue

    But the button cannot be enabled, i have no idea why it happened.
    I got no idea about what happened...
    Thank for your kind help!
Working...