I have fileupload1 being used by client to upload excel file to radgrid and then to DB. Problem is the fileupload reads the server location and not the client location of the file before uploading to the radgrid. So not really sure what to do? I've researched some people saying it isn't possible to read the location of client side due to security but it's the client side upload so don't know why that wouldn't work. Here is some of my code because it still reads from server so I don't know what else to do.
permissions on that server have been granted to network service and aspnet....
Thanks in advance.
| protected void btnView_Click(object sender, EventArgs e) |
| { |
| string filename = FileUpload1.FileName.ToString(); |
| this.ocAccounts = this.oExcelHelper.LoadExcel(filename); |
| rgBulkEntry.DataSource = this.ocAccounts; |
| rgBulkEntry.DataBind(); |
| Session.Add("Accounts", this.ocAccounts); |
| } |
permissions on that server have been granted to network service and aspnet....
Thanks in advance.