Posted on: 4/12/2011 9:33:58 AM | Views : 383

I have following code :-
Click event of Export Button
????Dim tablename as string = Ctype(ddlTableList.SelectedValue, EnumValues.Upload_Tables).ToString
Dim stringWriter a IO.StringWriter = New IO.StringWriter()
Dim htmlWriter as HTMLTextWriter = new HtmlTextWriter(stringWrite)
context.Response.clear()
Context.Response.AddHeader("content-disposition",string.Format("attachment; filename={0}.xls",tablename))
context.Response.Charset=""
context.Response.ContentType = "application/vnd.xls"
When I click on Export button, I am getting Excel file name as ?"ABC_TestCAOKG094.xls". but I want file name simpli as "ABC_Test".
If you have any idea for the same, please reply to this post.
 
...

Go to the complete details ...