Web Forms :: Can't Download Song And Video

Mar 12, 2011

i m trying to download song and video using following code but it only save can't download it

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "id")
{
string url = Convert.ToString(e.CommandArgument);
//Response.Redirect(url);
FileInfo fileInfo = new FileInfo(url);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + fileInfo.Name);
//Response.ContentType = "application/octet-stream";
Response.ContentType = "application";
Response.Flush();
}
}

View 4 Replies


Similar Messages:

Mobiles :: How To Download A Song File And Play It Automatically With The Native Browser

Mar 30, 2011

I want to open the songfile automatically with blackberry native music player ,upon clicking that link. I have searched almost all web , but i was not able to find a solution, how we can download and open a file with native medal player browser. All the code samples i got was in java. Is there any code for doing that in asp.net ? Any alternative in html? The <object> & <embedd> tags are not displaying in the browser when i run the project. So, i think it won't work ? Is there any possible solution for that.... Suppose the content type="audio/mp3" . can any one specify code for that ?

When normal downloading, again Request Entity Too Large Error appears. It's not bcoz the file is large, Itz only 344 kb. Still its not working.Why is it so?

View 1 Replies

Web Forms :: File Download For Progressive Video Player?

Mar 24, 2011

I've configured progressive video player on my website. When I'm passing direct url to .mp4 file everything works fine.

when I'm trying to pass file bytes from my .ashx file. Player begins to play but if you try to seek it'll write buffering, buffer video till the seekpoint and continue to play.

here is my file download script in .ashx handler

FileStream sourceFile = new FileStream(FileName, FileMode.Open); long FileSize; FileSize = sourceFile.Length; byte[] buffer = new byte[(int)FileSize]; sourceFile.Read(buffer, 0, (int)sourceFile.Length); sourceFile.Close(); context.Response.AddHeader("Content-Disposition", "attachment;filename=file.mp4"); context.Response.ContentType = "application/octet-stream"; context.Response.BinaryWrite(buffer);

View 1 Replies

C# - How To Download A Video

Apr 11, 2010

how to download a video file .wmv and save it to the user's disk when click a button without using the browser save link as

View 2 Replies

Download A Video File With C#

Jul 30, 2010

i want code to downlaod a video file using asp.net with c#

View 3 Replies

Web Forms :: Way To Stop Flash Player When A User Clicks On Another Song In Table

Aug 8, 2013

I am displaying a list of songs in a table and each one has the flash player next to it.Is there a way i can stop the flash player when a user clicks on another song in the table. currntly they both play togetther.

View 1 Replies

How To Fetch Lyrics On Basis Of Artist Name And Song Name

Feb 25, 2011

I want to develop a window application for fetch lyrics on basis of artist name and song name. I am using [URL] and to access this API i am using SOAP webservice. when i add this namespace using LyricsLookup.org.lyricwiki; i can access all function of wiki but when i run my application it is giving unable to automatically step into the server.Connecting to the server machine 'lyricwiki.org' failed. The format of the specified network name is invalid This type of error. I am not getting this error clearly.

View 1 Replies

C# - How To Load The Mp3 Song And Display It In Aspx Webpage

Aug 12, 2010

i got the mp3 file read as byte[] from the database. how to show this byte[] /assign to which control to make the mp3 load and play in aspx webpage.how to load the mp3 song and display it in webpage?

or. how to download the file?

View 2 Replies

Web Forms :: How To Post A Video On Video Player

Feb 10, 2011

I want to post few videos on a website but i don't want to use youtube or any other website.

I want to have an in-build player on the webpage with video in it - how to accoplish that ?

View 4 Replies

Basic Template - Implement For A Video Search Function For Youtube Video?

Jan 12, 2010

Now i'm currently trying to code a basic website as a project and i've run into problems regarding a search video function. having searched through the forum i still could not find a solution.What i intend to do is to have a video search web service in my website, perhaps something like this:http://www.google.com/uds/solutions/...rch/index.html. however from my limited understanding the codes provided is unable to work with VS2005? Is there a basic template that i could follow and implement for a video search function for youtubes video?

View 8 Replies

Javascript - What Is The Best And Easiest-to-use Video Player For Popular Video Extension

Sep 6, 2010

What is the best and easiest-to-use video player for popular video extension in asp.net?

View 1 Replies

Web Forms :: Download File Using New Window When Download Button Is Clicked

Sep 2, 2013

I need to download  a .mp3 file from a folder. during download a new blank page should open and after downloading it should close automatically.

View 1 Replies

AJAX :: How To Use Rating Control For Song Rating In A Musical Website

Jan 29, 2011

I am now doing a project mobile musical website. I have used Ajax Toolkit in my last project and so that I know how to install it and work with it...

I have used CalenderExtender, TextboxWatermark, Password Strength, etc. But I am not familiar with the rating control. How does it work ?

View 1 Replies

AJAX :: Modal Popup Extender Along With An Embedded Video, The Popup Is Hidden Behind The Video In IE?

May 4, 2010

When using a modal popup extender along with an embedded video, the popup is hidden behind the video in IE but works as expected in FF.I've tried manually setting the z-index of the popup to a huge number and the z-index of the video object to 1 but this makes no difference.
I've put the code for a sample page below.

[Code]....

View 2 Replies

Show Download Dialog Box In Case Of File Download - Located On Amazon Server

Jan 4, 2010

i am using amazon s3 service. now i want to show download dialog box in my asp.net application when user come on download page. i am using amazon sdk.

View 1 Replies

HttpHandlers / Modules :: Redirect Shareware Download URL From A File To A Download Page?

Oct 13, 2010

I'm about to submit my pad file to multiple sharware sites but the pad file has to have a direct link to the download file and can't link to a download page which is what I would like to do, so I can track the traffic and get the downloader's email before allowing the download. I am running an ASP.NET site in VB. Is there a way to tell the web app to redirect to a specific aspx page when it receives a request for a specific file?

View 1 Replies

AJAX :: Download LinkButton In UpdatePanel Throwing Error While File Download?

Jun 10, 2013

I have added linkbutton inside gridview to download, below is my code..

protected void lnkDownload_Click(object sender, EventArgs e)
{
try
{

[Code].....

its giving me following error

"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack"

View 1 Replies

MVC :: How To Add Video In 2.0 Using VIdeo Tag That Is Using Html5

Feb 11, 2011

I want know how to add video in mvc 2.0 using Video tag in Html 5 .I am trying to add video using video it display Erro video tag is not defined please help me How to add video in MVC 2.0

View 3 Replies

Order Report To Download In Excel And Download Later

Jan 16, 2010

I am developing a website and one of the requirements is that, application is showing millions of records in gridview and if client want to download it they can add that report to get generated in excel format and then they can logout after few hours they recive an email saying that their report is ready and they can download it.

View 1 Replies

Creating Mobile Website Page To Download Symbian .sis File To Mobile Unable To Download Properly

Dec 10, 2010

i m creating asp.net Mobile website page to download symbian .sis file to mobile ,but its not geting download properly.its working perfectly on desktop.

View 2 Replies

Web Forms :: Video Is Not Playing In Tag?

Jan 31, 2010

i have Placed one object tag in one of my aspx pages which will play videos dynamically. object tag is as follow:

<object
type="application/x-shockwave-flash"
data='<%=file %>'[code]....

where "file" is a variable which i have delared at Code behind and on one button click i set it with "Video file with path". problem is that, i am not able to play video...

View 12 Replies

Web Forms :: Show Video In .net?

Mar 26, 2011

i have video file in my data base.and i want to run this video in my website.

View 2 Replies

Web Forms :: Playing Video On Web App?

Jul 8, 2010

i used this JQuery plugin to play video on my app

[URL]

but i am not able to play the video,,,,,,Do i need some kind of player too??

i just copied the source from page and pasted as well as made js file too and copied the code of plugin and pasted in my app...

View 6 Replies

Web Forms :: Get A Video From A Database?

May 17, 2010

I have used asp.net for a while, but never had to embed a video before. I'm using a simple Windows Media Player object which works when given a static URL to use for the video.My problem is that I want to be able to get the URL from a database, I'm probably being stupid and it is late, but the answer isn't jumping out at me. On a change of value in a dropdownlist I want a video to load and I'm not sure how to give the object the

View 1 Replies

Web Forms :: How To Capture Video

Apr 20, 2014

i want to integrate video capturing option in my website for intrview pupose.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved