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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Can you beleive it..

Can you beleive it..

Scheduled Pinned Locked Moved ASP.NET
csharphelpcomtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SABhatti
    wrote on last edited by
    #1

    I have been wondering since last 2 weeks that why my code to dhow the save dialog is not working, I even have posted in this forum 2/3 times before for help, but could'nt get much (but did get help in my last post by minhc_pk Here[^] but today i just tried a weird thing, I used C# code exactly the same as i was using in vb.net and and it is works just fine here is the c# code: Response.Clear(); Response.AppendHeader("Content-Disposition", "attachment; filename=" + document + ";"); Response.ContentType = "application/vnd.ms-excel"; Response.WriteFile(path + document); Response.End(); check Here[^] for vb.net code:-> u won't see any difference but c# is working in the circumstances I mentioned in my previous post, but vb.net doesn't work...:confused: I am posting this because it took 2 days for me correct the problem so this post may save this time for someone else..;P:-> -----

    M 1 Reply Last reply
    0
    • S SABhatti

      I have been wondering since last 2 weeks that why my code to dhow the save dialog is not working, I even have posted in this forum 2/3 times before for help, but could'nt get much (but did get help in my last post by minhc_pk Here[^] but today i just tried a weird thing, I used C# code exactly the same as i was using in vb.net and and it is works just fine here is the c# code: Response.Clear(); Response.AppendHeader("Content-Disposition", "attachment; filename=" + document + ";"); Response.ContentType = "application/vnd.ms-excel"; Response.WriteFile(path + document); Response.End(); check Here[^] for vb.net code:-> u won't see any difference but c# is working in the circumstances I mentioned in my previous post, but vb.net doesn't work...:confused: I am posting this because it took 2 days for me correct the problem so this post may save this time for someone else..;P:-> -----

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Oh nice catch SABhatti, that explained why my sample code (in C#) didn't have any problem while running ;P , but surely I still want to dig into this clue when I have a time.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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