Click here to Skip to main content
16,015,072 members

Comments by Member 10026544 (Top 2 by date)

Member 10026544 17-Jun-13 6:15am View    
hi Mahesh, not exactly i am able to save my file where ever i am interested, but at the same time i am not able to render the same path where i am saving the first file. for example i am saving an excel file from gridview by using HTTP Responce class as i said earlier. so the same path where i have saved the excel file need to be used to save another file immediately instead of selecting same path again through the UI. so how can i get the first saved path from the browser. here is my Export Excel code


Response.ClearContent();
Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", FileName + ".xls"));
Response.Charset = "";
Response.ContentType = "application/excel";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
gvPreview.RenderControl(htw);
Response.Write(sw.ToString());
Response.End();
Member 10026544 17-Jun-13 6:01am View    
hi amit, thanks for the immediate reply but i am stuck with an issue based on this scenario. i need to get the path of the user selection after export. For example if the user selected a folder from c:\ drive then i need to get that path so that i can save one more file along with the exported excel file. so is there any way to retrieve the user selected file path? please help me out with this.