Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

shockwavepulsar

@shockwavepulsar
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Page won't postback after savefile dialog
    S shockwavepulsar

    No postback after savefile dialog I finally got my page so you can save a file from the server to the local machine, however, once it is saved the page doesn't refresh itself or continue doing what it should, it just sits there! The download function is sent the address of the file to download and the name to call it as variables. Download function code: Sub test(ByVal strFilename, ByVal strDownloadFilename) Dim objStream, fso, objFilestream Dim intFileLength ' clear the buffer Response.Buffer = True Response.Clear() ' create stream objStream = Server.CreateObject("ADODB.Stream") objStream.Open() ' set as binary objStream.Type = 1 ' check the file exists fso = Server.CreateObject("Scripting.FileSystemObject") If Not fso.FileExists(strFilename) Then tbFilter1.txt = "File not found" End If ' get length of file objFilestream = fso.GetFile(strFilename) intFileLength = objFilestream.size objStream.LoadFromFile(strFilename) 'format strFileName If Len(Trim(strDownloadFilename)) > 0 Then strDownloadFilename = Trim(strDownloadFilename) Else strDownloadFilename = objFilestream.name End If ' send the headers to the users browser Response.AddHeader("Content-Disposition", "attachment; filename=" & strDownloadFilename) Response.AddHeader("Content-Length", intFileLength) Response.Charset = "UTF-8" ' output the file to the browser Response.BinaryWrite(objStream.Read) Response.Flush() ' tidy up objStream.Close() objStream = Nothing 'objFilestream.Close() objFilestream = Nothing fso = Nothing tbFilter1.Text = "Done!" End Sub I can step through past the end, but it doesn't DO anything! The text "Done!" never appears, and there is no postback. If I click something else, I get writing appearing in the background f the website. Why oh why?!?

    ASP.NET sysadmin question

  • Urgent : Unable to display ASP by http://localhost/localstart.asp
    S shockwavepulsar

    First, ss it physically there at that location? When you go to COntrol Panel, Admin tools, IIS, can you see it under Web Sites, Default Web Site? What do you have listed in there? Perhaps try putting your computer name instead of local host, just to see what happens. \\compname\localstart.asp

    ASP.NET question sysadmin windows-admin help

  • ASP page needs to copy database files to local machine, arh!
    S shockwavepulsar

    Thankyou thankyou thankyou! I'll look into that now! I agree that is it a good thing a website cannot just install files on your computer. However my clients who will have this running on their intranet don't care about that, they just want it done! I've been working in ASP for about a month now and this makes me the reining ASP expert at my company... Thanks for your advise!

    ASP.NET database com sysadmin question

  • Copy File
    S shockwavepulsar

    I have a simular problem too, the webpage only seems to be able to talk to the maching it is hosted on, even though that machine has share access to others. I am stumped :(

    ASP.NET help windows-admin question

  • ASP page needs to copy database files to local machine, arh!
    S shockwavepulsar

    Here's what I need to do. The web interface shows a bunch of files that have been backed-up into a database. The user can then look through the files (works fine) and select the ones they would like to restore and the place they would like them restored too. This works fine if they would like to restore the file to the machine the web server is running on, but not if they want to save the file to their local machine. Also, they have the option of inserting a disc with the file on it, and restoring it with that. However the programm looks for a disc in the server machine, not the local one. The files the will be restoring are not stored on teh web server, just on the same machine the server is running on. I've looked as filesystem objects, activeX controlls, ADODB streams, ftp stuff and DHTML client/server controlls and have come up with no solution. Is this even possible?!?

    ASP.NET database com sysadmin question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups