Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Ajax Toolkit Accordion Control Problem Pin
ednrg15-May-10 5:38
ednrg15-May-10 5:38 
QuestionJavascript Image Flickering issue Pin
ATM@CodeProject12-May-10 3:39
ATM@CodeProject12-May-10 3:39 
QuestionAuto scrolling for listbox Pin
AnandDesai1912-May-10 1:02
AnandDesai1912-May-10 1:02 
AnswerRe: Auto scrolling for listbox Pin
Sandeep Mewara12-May-10 4:38
mveSandeep Mewara12-May-10 4:38 
QuestionAjax Error Pin
salmonraju12-May-10 0:52
salmonraju12-May-10 0:52 
AnswerRe: Ajax Error Pin
Not Active12-May-10 2:32
mentorNot Active12-May-10 2:32 
AnswerRe: Ajax Error Pin
puviyarasan.j12-May-10 21:01
puviyarasan.j12-May-10 21:01 
Questionconverting gridview to excel in asp.net Pin
jadhavShubhangi12-May-10 0:32
jadhavShubhangi12-May-10 0:32 
hi
i am using following code to export gridview to excel..but the generated excel file does not contain rows and columns as normal excel file ...

can any on e suggest a solution for that

here is my code


StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
String savefile = heading;
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";
HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=" + savefile + ".xls");
HttpContext.Current.Response.Charset = "";
gv.RenderControl(htw);
HttpContext.Current.Response.Write(sw.ToString());
HttpContext.Current.Response.End();
AnswerRe: converting gridview to excel in asp.net Pin
Khaja A. Imtiaz12-May-10 0:49
Khaja A. Imtiaz12-May-10 0:49 
GeneralRe: converting gridview to excel in asp.net Pin
jadhavShubhangi12-May-10 1:03
jadhavShubhangi12-May-10 1:03 
GeneralRe: converting gridview to excel in asp.net Pin
Khaja A. Imtiaz12-May-10 1:09
Khaja A. Imtiaz12-May-10 1:09 
GeneralRe: converting gridview to excel in asp.net Pin
jadhavShubhangi12-May-10 1:19
jadhavShubhangi12-May-10 1:19 
AnswerRepost : converting gridview to excel in asp.net (Repost) Pin
nagendrathecoder12-May-10 3:09
nagendrathecoder12-May-10 3:09 
GeneralRe: Repost : converting gridview to excel in asp.net (Repost) Pin
jadhavShubhangi12-May-10 3:22
jadhavShubhangi12-May-10 3:22 
Questionhtml Pin
AndyInUK12-May-10 0:16
AndyInUK12-May-10 0:16 
AnswerRe: html Pin
Khaja A. Imtiaz12-May-10 0:26
Khaja A. Imtiaz12-May-10 0:26 
GeneralRe: html Pin
AndyInUK12-May-10 0:37
AndyInUK12-May-10 0:37 
AnswerRe: html Pin
Venkatesh Mookkan12-May-10 0:38
Venkatesh Mookkan12-May-10 0:38 
AnswerRe: html Pin
Not Active12-May-10 2:36
mentorNot Active12-May-10 2:36 
QuestionASP.NET with sliver light Pin
Satish_S11-May-10 23:58
Satish_S11-May-10 23:58 
AnswerRe: ASP.NET with sliver light Pin
Jamil Hallal12-May-10 0:09
professionalJamil Hallal12-May-10 0:09 
AnswerRe: ASP.NET with sliver light Pin
#realJSOP12-May-10 2:11
mve#realJSOP12-May-10 2:11 
GeneralRe: ASP.NET with sliver light Pin
The Man from U.N.C.L.E.12-May-10 2:37
The Man from U.N.C.L.E.12-May-10 2:37 
GeneralRe: ASP.NET with sliver light Pin
Satish_S14-May-10 2:06
Satish_S14-May-10 2:06 
AnswerRe: ASP.NET with sliver light Pin
The Man from U.N.C.L.E.14-May-10 3:16
The Man from U.N.C.L.E.14-May-10 3:16 

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.