Last post Jan 05, 2021 07:17 PM by bruce (sqlwork.com)
Jan 05, 2021 05:32 PM|tadbirgaran|LINK
I want to open file of type pdf/office/image/video in browser without showing up the save dialoge box. Have you got any idea on implementing it in C# asp.net.
this link but could not use it in .net MVC c#
Jan 05, 2021 06:24 PM|mgebhard|LINK
Viewing documents dependents on what plugins the user has installed and has little to do with C# or ASP.NET.
Images and Videos use standard HTML tags.
Jan 05, 2021 07:17 PM|bruce (sqlwork.com)|LINK
The content-disposition header is the hint to the browser to download or display file.
to display video, you need to render a page that has a media control which a src to the video.