Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMy SQl Date Time problem Pin
Krazy Programmer7-Sep-08 20:51
Krazy Programmer7-Sep-08 20:51 
AnswerRe: My SQl Date Time problem Pin
Blue_Boy7-Sep-08 21:13
Blue_Boy7-Sep-08 21:13 
GeneralRe: My SQl Date Time problem Pin
Krazy Programmer7-Sep-08 21:31
Krazy Programmer7-Sep-08 21:31 
AnswerRe: My SQl Date Time problem Pin
pratik malviya7-Sep-08 21:43
pratik malviya7-Sep-08 21:43 
QuestionDataTable to Excel Pin
Vignesh Krishnan7-Sep-08 20:24
Vignesh Krishnan7-Sep-08 20:24 
AnswerRe: DataTable to Excel Pin
Blue_Boy7-Sep-08 20:46
Blue_Boy7-Sep-08 20:46 
AnswerRe: DataTable to Excel Pin
Shaik Haneef8-Sep-08 0:21
Shaik Haneef8-Sep-08 0:21 
GeneralRe: DataTable to Excel Pin
Gamzun8-Sep-08 17:23
Gamzun8-Sep-08 17:23 
you've to iterate through dt row by row

try the following;
---------------------------------------
Respone.Clear();
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");
Response.ContentType="application/.xls";

foreach(dataRow row in dt.Rows)
{
Response.Write("
");
Response.Write(row[0]+" "+row[1]);

}
Response.End();
-----------------------------------------

customize you code while writting it into Response's Write method, I gave you a fair example, play with it Smile | :)
AnswerRe: DataTable to Excel Pin
Herman<T>.Instance8-Sep-08 23:11
Herman<T>.Instance8-Sep-08 23:11 
QuestionAllowed html tags crystal report in ASP.NET Pin
King Shez7-Sep-08 20:08
King Shez7-Sep-08 20:08 
AnswerRe: Allowed html tags crystal report in ASP.NET Pin
King Shez7-Sep-08 20:35
King Shez7-Sep-08 20:35 
GeneralRe: Allowed html tags crystal report in ASP.NET Pin
kumar.ashok0513-Sep-09 22:02
kumar.ashok0513-Sep-09 22:02 
GeneralRe: Allowed html tags crystal report in ASP.NET Pin
amir.net9-Oct-09 5:13
amir.net9-Oct-09 5:13 
Questionhow to use code behind files function in aspx file Pin
pratik malviya7-Sep-08 19:54
pratik malviya7-Sep-08 19:54 
AnswerRe: how to use code behind files function in aspx file Pin
Sandeep Akhare7-Sep-08 22:36
Sandeep Akhare7-Sep-08 22:36 
GeneralRe: how to use code behind files function in aspx file Pin
pratik malviya7-Sep-08 23:41
pratik malviya7-Sep-08 23:41 
GeneralRe: how to use code behind files function in aspx file Pin
Sandeep Akhare8-Sep-08 0:50
Sandeep Akhare8-Sep-08 0:50 
AnswerRe: how to use code behind files function in aspx file Pin
Shaik Haneef8-Sep-08 0:18
Shaik Haneef8-Sep-08 0:18 
AnswerRe: how to use code behind files function in aspx file Pin
balaji.t8-Sep-08 0:32
balaji.t8-Sep-08 0:32 
QuestionEvent Handler for programmatically created LinkButton control help!! Pin
Rameez Raja7-Sep-08 19:50
Rameez Raja7-Sep-08 19:50 
AnswerRe: Event Handler for programmatically created LinkButton control help!! Pin
Sandeep Akhare7-Sep-08 22:38
Sandeep Akhare7-Sep-08 22:38 
GeneralRe: Event Handler for programmatically created LinkButton control help!! Pin
Rameez Raja8-Sep-08 0:34
Rameez Raja8-Sep-08 0:34 
GeneralRe: Event Handler for programmatically created LinkButton control help!! Pin
Sandeep Akhare8-Sep-08 0:53
Sandeep Akhare8-Sep-08 0:53 
QuestionWorking with ASP and ArcView Pin
buzzcore7-Sep-08 19:42
buzzcore7-Sep-08 19:42 
QuestionEvent Handler working for programmatically created LinkButton control help!! Pin
Rameez Raja7-Sep-08 19:38
Rameez Raja7-Sep-08 19:38 

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.