locked
newbie need help RRS feed

  • Question

  • User426398061 posted
    Hi, I want to know the procedure how to download the file onto a mobile browser. I guess thats possible. How about onto NOKIA mobile browser ?? Can anyone let me know the procedure. I got this code from the same forums, but this is not working on nokia mobile browser ... may I know how to make this workout ?????? Thanks in advance. Dim file As System.IO.FileInfo = New System.IO.FileInfo("C:\testing.txt") Dim StrValue as String '-- if the file exists on the server If file.Exists Then 'set appropriate headers Response.Clear() Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name) Response.AddHeader("Content-Length", file.Length.ToString()) Response.ContentType = "application/txt" StrValue = Response.WriteFile(file.FullName) Response.End Else 'if file does not exist Response.Write("This file does not exist.") End If
    Sunday, September 5, 2004 4:11 AM

All replies

  • User2085740027 posted
    Hi, This may work only if ur browser support content type text but i dont think the nokia browser support that.
    Tuesday, September 7, 2004 7:52 AM