TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nepethya Rana
NA
335
152.8k
How do i modify the application so that it download the file
Nov 22 2017 10:52 AM
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>
Reply
Answers (
1
)
how to install visual studio for web and sql 2012 or14 in lp
Mail box smtp is not working