I have a web page that displays a ListView control populated with rows that contain a path to files that can be downloaded. When a link on the listview is clicked, that file will be downloaded to the user's PC. This works for all browsers we tested except
Safari on a mac. Here is the code of the SelectedIndexChanged event:
protected void lvDownloads_SelectedIndexChanging(object sender, ListViewSelectEventArgs e)
{
string sId;
sId = lvDownloads.DataKeys[e.NewSelectedIndex].Value.ToString();
System.Web.HttpContext context = System.Web.HttpContext.Current;
string ipAddress = Convert.ToString(context.Request.ServerVariables["REMOTE_ADDR"]);
Int32 iDownloadId = 0;
iDownloadId = Convert.ToInt32(sId);
string filePath = Convert.ToString(SqlHelper.ExecuteScalar(connStringHG, "GetDownloadsById", iD ...
Go to the complete details ...