![]() But the problem is, that this code only works when using the Internet Explorer. My understanding is that for Chrome and Microsoft Edge, using the "Save It does not work when using Chrome Browser or Microsoft Edge. 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. I think my previous statement was not clear enough, which caused you confusion. If the link is valid, you can save it as. ![]() 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. ![]() 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.Ģ. I obtained file download links (valid and accessible) from some sharing sites for testing purposes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |