Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Have A page Mobileview.aspx and this page has an Iframe and bb.aspx page is opening in this iframe . bb.aspx has a hyperlink like
ASP.NET
<asp:HyperLink id="hyperlink1"
                  NavigateUrl="download.aspx?path=D:/folder/file.jpg"
                  Text="Click here to download image"
                  Target="_blank"
                  runat="server"/>

when i click on this hyperlink then download.aspx does open in new tab and i have written code for download file in page load event. this is working fine in all desktop browsers but when i open bb.aspx page in android or Iphone browsers then new tab open and wait for file download then it will give me connection time out . the image size hardly more than 100 kb. can anybody tell me what should i do for this.But in desktop browsers it will download file with out any issue
Posted
Updated 21-May-15 13:04pm
v6

1 solution

Use
C#
Response.TransmitFile("Path");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900