Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How do i modify the application so that it download the file
Nepethya Rana
Nov 22 2017 10:52 AM
158
Reply
I am working on old asp.net web form application which opens the file on button click.
I need to modify the application so that it download the file instead of opening the file.
How do i do it?
Code behind :
on page load event :
btnAdvertising.OnClientClick = "javascript:window.open('" & My.Settings.FilePath & "');"
btnAdvertising.DataBind()
In my config file I have passed physical filepath:
<setting name="MAG_URL" serializeAs="String">
<value>file://NetworkDrvie/SHARED/AllPdf/Advertising.pdf</value>
</setting>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to install visual studio for web and sql 2012 or14 in lp
Mail box smtp is not working