Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
I have an asp.net application which allows user to download PDF files. but instead of downloading it, the browser opens the file with unreadable block characters.
Download Code
ProtectedSub btn_dwnd_Click(ByVal sender AsObject,ByVal e As System.EventArgs)Handles btn_dwnd.Click
cn.Open()
cmd.CommandText ="Select * from Syllabus where file_name ='"& txtdwd_file.Text &"'"
cmd.Connection = cn
dr = cmd.ExecuteReader
DoWhile dr.Read
Response.WriteFile(dr("file_name"))Loop
cn.Close()EndSub
I am trying to download my uploaded pdf file in my project's root directory D:\OLMS when I click download unreable characters opens up in browser (square characters). I think it opens up pfd file in browser
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
2 years ago
I have an asp.net application which allows user to download PDF files. but instead of downloading it, the browser opens the file with unreadable block characters.
Download Code
I am trying to download my uploaded pdf file in my project's root directory
D:\OLMS
when I click download unreable characters opens up in browser (square characters). I think it opens up pfd file in browserUpload Code