Click here to Skip to main content
15,888,018 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to avoid loading time while using repeater Pin
prakash.ss8326-Jul-10 2:23
prakash.ss8326-Jul-10 2:23 
AnswerRe: how to avoid loading time while using repeater Pin
Not Active26-Jul-10 2:42
mentorNot Active26-Jul-10 2:42 
AnswerRe: how to avoid loading time while using repeater Pin
Herman<T>.Instance26-Jul-10 3:48
Herman<T>.Instance26-Jul-10 3:48 
GeneralRe: how to avoid loading time while using repeater Pin
Not Active26-Jul-10 4:32
mentorNot Active26-Jul-10 4:32 
AnswerRe: how to avoid loading time while using repeater Pin
T M Gray26-Jul-10 4:22
T M Gray26-Jul-10 4:22 
QuestionIIS configuration error Pin
Ahamed Azeem26-Jul-10 1:49
Ahamed Azeem26-Jul-10 1:49 
AnswerRe: IIS configuration error Pin
Herman<T>.Instance26-Jul-10 3:50
Herman<T>.Instance26-Jul-10 3:50 
QuestionExport to Excel in a Zip format Pin
Member 322226425-Jul-10 20:52
Member 322226425-Jul-10 20:52 
Hi,
I have a gridview with some rows.
The below code works fine to export the data in Excel format

protected void btn_Export_Click(object sender, EventArgs e)
{
Response.Clear();
Response.Buffer = true;
//Response.Charset = "UTF-8";
Response.AppendHeader("Content-Disposition", "attachment;filename=schoolsinfo.xls");
Response.Write(filename);
Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8");
Response.ContentType = "application/ms-excel";
this.EnableViewState = false;
System.Globalization.CultureInfo myCItrad = new System.Globalization.CultureInfo("EN-US", true);
System.IO.StringWriter oStringWriter = new System.IO.StringWriter(myCItrad);
System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);
grd.RenderControl(oHtmlTextWriter);
Response.Write(oStringWriter.ToString());

}

how to get the filename schoolsinfo.xls to string.
I am getting filename as null.

Please help

Also i need to export the excel file in Zip format.

Guhananth.S
AnswerRe: Export to Excel in a Zip format Pin
Not Active26-Jul-10 2:36
mentorNot Active26-Jul-10 2:36 
GeneralRe: Export to Excel in a Zip format Pin
Member 322226426-Jul-10 19:07
Member 322226426-Jul-10 19:07 
QuestionSQLStatement Pin
arsha_midy25-Jul-10 11:39
arsha_midy25-Jul-10 11:39 
AnswerRe: SQLStatement Pin
Not Active25-Jul-10 15:34
mentorNot Active25-Jul-10 15:34 
GeneralRe: SQLStatement Pin
arsha_midy25-Jul-10 20:50
arsha_midy25-Jul-10 20:50 
GeneralRe: SQLStatement Pin
Nishant Singh26-Jul-10 1:54
Nishant Singh26-Jul-10 1:54 
QuestionGrid view with asp.net model pop up Pin
Amit Patel198525-Jul-10 1:00
Amit Patel198525-Jul-10 1:00 
AnswerRe: Grid view with asp.net model pop up Pin
Sandeep Mewara25-Jul-10 6:24
mveSandeep Mewara25-Jul-10 6:24 
AnswerRe: Grid view with asp.net model pop up Pin
koolprasad200325-Jul-10 18:06
professionalkoolprasad200325-Jul-10 18:06 
QuestionMVC and Entity framework Pin
future383924-Jul-10 20:13
future383924-Jul-10 20:13 
AnswerRe: MVC and Entity framework Pin
Gil Fink24-Jul-10 20:32
Gil Fink24-Jul-10 20:32 
GeneralRe: MVC and Entity framework Pin
future383926-Jul-10 13:58
future383926-Jul-10 13:58 
GeneralRe: MVC and Entity framework Pin
Gil Fink27-Jul-10 20:50
Gil Fink27-Jul-10 20:50 
Questiondatagridview Pin
ptvce24-Jul-10 19:59
ptvce24-Jul-10 19:59 
AnswerRe: datagridview Pin
thatraja24-Jul-10 20:08
professionalthatraja24-Jul-10 20:08 
GeneralRe: datagridview Pin
ptvce24-Jul-10 21:20
ptvce24-Jul-10 21:20 
GeneralRe: datagridview Pin
nagendrathecoder25-Jul-10 19:57
nagendrathecoder25-Jul-10 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.