Hi All,
I am uploading a file with extension (.xls/.doc/.pdf) in my aspx page with in my application.
i have one option for downloading the file with download button.when i click the button it opens with a modless window with options(open,save, cancel).
i have another option for viewing the file with hypelink.when i click the hyperlink it opens with a modless window with options(save, cancel).The file type is shown as unknown file. The required one is the modless window has to get with options(open,save,cancel)
let me know.
thanks.
Have a look at the following articles, especially the 3rd link:
1-Downloading Files in ASP.NET
2-Build Smarter ASP.NET File Downloading Into Your Web Applications
3-Downloading a File with a Save As Dialog in ASP.NET
Hope this helps,
Regards
hi all,
some of u had given some links for my post. thanks for that.
but we r using asp.net1.1, we r using the present code.
the file types are (.xls/doc/txt)
Response.ContentType = "application/" & FileExt
Response.ContentType = "application/octet-stream"
Response.AddHeader("content-disposition", "attachment; filename=" & FileNameOnly)
Response.WriteFile(iFileNname, False)
Response.End()
for this code, i am not able to get the open option.
thanks,
0 comments:
Post a Comment