I obtained file download links (valid and accessible) from some sharing sites for testing purposes. In this case, you could click the hyperlink to download the file, or choose to save the link as, it can work in differenet broswes.Ģ. So I just need to set the url attribute like this: Filelink.NavigateUrl = Data\my_data_filename.csv" A few examples (url Exact value):įiles under the local server. If the link is valid, you can save it as. I think my previous statement was not clear enough, which caused you confusion. TableCell tCellHeader1 = new TableCell() But when the user selects Save Link as, nothing happens.Ĭan you please tell me how I need to modify the code so that we can save the files using Chrome or Microsoft Edge as well ? HyperLink Filelink = new HyperLink() įilelink.NavigateUrl = "Data\\" "my_data_filename.csv" įilelink.ToolTip = "Right Mouse Click, then Save Target as." Link as" option, on right clicking the link, should work. My understanding is that for Chrome and Microsoft Edge, using the "Save It does not work when using Chrome Browser or Microsoft Edge. But the problem is, that this code only works when using the Internet Explorer. Using Internet Explorer, they do a Right Mouse Click on the link, then they select the "Save Target as" option, to save the. And they can do that successfully, as long as they use Internet Explorer. I want the users of this web page to be able to save the. CSV data files, using the Code shown below. In one of the web pages, I create links to. Hi, I have developed an asp.net web application, coded using C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |