User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,560 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,712 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 887 | Replies: 2
Join Date: Mar 2008
Posts: 2
Reputation: apkumar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
apkumar apkumar is offline Offline
Newbie Poster

Open a file using asp.net

  #1  
Mar 19th, 2008
Hi all,

I would like to open a file in Local drive using Asp.net,

And I have written the following code in user control which could open the file,

Response.AddHeader("Content-Disposition", "attachment; filename=" & strFilename)
Response.WriteFile("C:\\open\\" & strFilename)
Response.Flush()
Response.Close()

The above code working fine in .Net 2005, In SharePoint also I am able to open the file, But After opening the file I am unable to do Any operation in that page, I can do any operation once I refresh the page....

Any Suggestions???

Kindly revert back to me if u have concerns...


Thanks in Advance,

kumar.
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 6:28 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC