Mobiles :: File Download And Open In Windows Phone 7?
Mar 4, 2011
I am developing winodws phone application. I need to download and open a file when click "Download File".i have done this in asp.net by using the follwoing code.. it's working fine in asp.net.BUT, I need the same functionality in WINDOWS PHONE 7.
I am trying to develop an application to do file transfer between 2 WIN Phone 7 through 3G.How can we accomplish this task?Is there any msdn articles available for this?
We have a whole bunch of WML pages that are served out using ASHX files and we've had no problems with them. However, someone has just got a Windows 7 Phone and when they browse to one of these pages they get:
Can't download file! Windows Phone doesn't support .ashx files Is there some IIS configuration that we need to do to make this work?
I have one .xamel page and this one is default page (first page) and then I added a new one page (named page2.xaml) in same solution. I added a button on the firs page and i want to navigate to a second page when i click on button
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?
I need to open the .swf file thru web page on platform window CE. I got a .swf file which is saving in window CE mobile device on path: My DocumentsflashParallelParking.swf. So when user browse the web page thru the mobile device, I need to open up the .swf file which is save in the particular path on the mobile device. I try to using Process() to open the file but hits an RunTime Error: "An Application error occurred on server. The current custom error setting for this app prevents the details of the app. error from being viewed remotely."
Public Partial Class HomePage Inherits System.Web.UI.Page Protected Sub ImageButton5_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton5.Click FileOpen("My DocumentsflashParallelParking.swf") End Sub Public Sub FileOpen(ByVal FileName As String) Dim myProcess As New Process() Try myProcess.StartInfo.FileName = FileName myProcess.StartInfo.Verb = "Open" myProcess.Start() Catch ex As Exception Throw ex End Try End Sub End Class
Can I detect the Name/model no of the mobile phones ,which are browsing my asp.net website from C# code behind? I need to show welcome message, addressing their model numbers and redirect to appropriate pages.
i'm te new begginer in this forum and in mobile device i want to ask to you all about monitoring hardware using cell phone especially cpu usage and memory usage. can you all help me, give me some example code, please.i hope you all can answer my question soon, cause i need to finish my last project for complete my study.
In our application, we allow user to upload documents which can be PDF, Doc, XLS, TXT. Uploaded documents will be saved on web server. We need to display link for each document user uploaded and when user click on that link, it should open relevant document. it is expected to have required software to open relevant documents.
To upload document, we use saveAs method of FileUpload control and it works absolutely fine.Now, how to view it?I believe, i need to copy/download file to local user machine and need to open it using Process.Start.For that i need to find user local temp directory. if i put path.GetTempPath(), it gives me web server directory and copy file there.
I am trying to display a local .html file in a web page. The file uses javascript to display some information about my phone. In the executable, I am retrieving two values out of the registry. I would like to pass these values in a query string (I think that is the correct terminology). Something like file://\Program Files\TestTest.html?type=newtype. I have attempted this with using webbrowser.navigate, but that is giving an unhandled exception when it tries to pass the URI string. Obviously, I have no experience with this and am using the wrong method. There has to be a simple way to open a new webpage in a form and pass it this type of string.
how to implement such a function? I have been attempting to implement this with Visual C# using the .net CF for Windows Mobile.
In my asp.net application (an inhouse software) I want users to be able to use files from Network (filepath stored in database). I use the following code to download the files:
Is there anyway to open the file without downloading it in a web based application, i.e. open the file directly from the network so when the users edit it and save it, the actual file is changed.
I have a mail list where i can select many mails and download (with/without opening the mail). During the download process i update the mail status(download/open) and show the content in pdf. In normal browser dialog opens where user can save open or cancel options exits. But if the user cancel then the update process done on the mail should not happen. so i think about doing the update process if the user clicks open or save but how can i identity that client control (i think it depend on the browser)
The issue is present if i download and unopened mail and click cancel button in the dialog box the pdf creation code i have done is in this link
[URL]
which i used to open that dialog in browser to save pdf
I have created a CSV file on the server and want to send it to the user using the following code:
Dim strPhysicalPath As String strPhysicalPath = Server.MapPath( "CSV/" & PathVirtual) Dim objFileInfo As System.IO.FileInfo = New System.IO.FileInfo(strPhysicalPath) Response.Clear() Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("Content-Disposition", "attachment; filename=" & objFileInfo.Name) Response.AddHeader("Content-Length", objFileInfo.Length.ToString()) Response.WriteFile(strPhysicalPath) Response.Flush() Response.End()
This seems to work fine except when the downloaded file is viewed in Excell the html code behind the page from which it came is also appended to the file. Does anyone have any idea why it does this?
I have a webpage that allows a user to download a specified file. When the file is ready to be fully downloaded (i.e I call the HttpResponse.End or HTTPRepone.Flush) the user is presented with a File Download dialogue.
Is there any way to determine what option the user has selected?
Have they Opened, Saved or Cancelled the File Download once the Flush or End has been sent?
I have been reading about adding a webservice to an MVC project and how this might conflict with the MVC structure. I added a webservice and it works with windows phone 7, it receives a number, (it's a simple application). I added the webservice by right clicking the Controller folder and selecting add new item->webservice. I am using the SOAP support already integrated in visual studio. I was wondering if there is a way that instead of adding a webservice that the windows phone 7 receives and sends data directly to the controller. The windows phone 7 communicates by right clicking on the solution explorer and adding a service reference.
I have tried alot over the internet to download Microsoft Mobile Internet Toolkit (MMIT), but found no way. Microsoft download link for MMIT download also found broken.
But when i browse the URL above in phone browse, the phone will show the image file in phone browse. But what i need to do is prompt user to download and save it.