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

ASP.NET

 
AnswerRe: how do i get datetimepicker for my asp.net2 Pin
Leyu16-Apr-07 4:29
Leyu16-Apr-07 4:29 
QuestionFiles to Deploy in ASP.NET 2.0 (Urgent) Pin
IamMohan15-Apr-07 22:02
IamMohan15-Apr-07 22:02 
AnswerRe: Files to Deploy in ASP.NET 2.0 (Urgent) Pin
N a v a n e e t h15-Apr-07 22:41
N a v a n e e t h15-Apr-07 22:41 
GeneralRe: Files to Deploy in ASP.NET 2.0 (Urgent) Pin
IamMohan15-Apr-07 23:21
IamMohan15-Apr-07 23:21 
GeneralRe: Files to Deploy in ASP.NET 2.0 (Urgent) Pin
IamMohan20-May-07 20:48
IamMohan20-May-07 20:48 
Questionweb mail Pin
amit.code15-Apr-07 21:49
amit.code15-Apr-07 21:49 
QuestionExport Datagrid to Excel file Pin
ADY00715-Apr-07 21:49
ADY00715-Apr-07 21:49 
AnswerRe: Export Datagrid to Excel file Pin
M A A Mehedi Hasan15-Apr-07 23:14
M A A Mehedi Hasan15-Apr-07 23:14 
Hello,
if your DataGrid name is dgGrid then try the following code

System.IO.StringWriter tw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw =
new System.Web.UI.HtmlTextWriter(tw);
DataGrid dgGrid = new DataGrid();
dgGrid.DataSource = dsExport;

// Get the HTML for the control.
dgGrid.HeaderStyle.Font.Bold = true;
dgGrid.DataBind();
dgGrid.RenderControl(hw);

// Write the HTML back to the browser.
Response.ContentType = "application/vnd.ms-excel";
this.EnableViewState = false;
Response.Write(tw.ToString());
Response.End();

Mehedi Hasan

GeneralRe: Export Datagrid to Excel file Pin
ADY00716-Apr-07 0:28
ADY00716-Apr-07 0:28 
QuestionServer IP Pin
vengaqua15-Apr-07 21:32
vengaqua15-Apr-07 21:32 
AnswerRe: Server IP Pin
N a v a n e e t h15-Apr-07 22:45
N a v a n e e t h15-Apr-07 22:45 
GeneralRe: Server IP Pin
vengaqua15-Apr-07 22:55
vengaqua15-Apr-07 22:55 
AnswerRe: Server IP Pin
TRK@UK16-Apr-07 4:01
TRK@UK16-Apr-07 4:01 
QuestionHow to count Words fom .doc or .txt files? Pin
Abhishek Joshi15-Apr-07 21:01
Abhishek Joshi15-Apr-07 21:01 
Questionhow to set default font style? Pin
neodeaths15-Apr-07 20:59
neodeaths15-Apr-07 20:59 
Questioncrystalreportviewer1.displaygrouptree=true not working Pin
MissionSuccess15-Apr-07 20:31
MissionSuccess15-Apr-07 20:31 
Questionresponse page for http request Pin
Mohammad Daba'an15-Apr-07 20:14
Mohammad Daba'an15-Apr-07 20:14 
AnswerRe: response page for http request Pin
N a v a n e e t h15-Apr-07 22:48
N a v a n e e t h15-Apr-07 22:48 
GeneralRe: response page for http request Pin
Mohammad Daba'an15-Apr-07 23:49
Mohammad Daba'an15-Apr-07 23:49 
QuestionProblem with ajax timer [modified] Pin
Smitha Appukuttan15-Apr-07 20:00
Smitha Appukuttan15-Apr-07 20:00 
QuestionError! Pin
nclauder15-Apr-07 19:45
nclauder15-Apr-07 19:45 
AnswerRe: Error! Pin
Faisal Khatri15-Apr-07 20:56
Faisal Khatri15-Apr-07 20:56 
GeneralRe: Error! Pin
nclauder15-Apr-07 23:38
nclauder15-Apr-07 23:38 
QuestionPlease Help me soon Urgent Pin
Mkanchha15-Apr-07 19:35
Mkanchha15-Apr-07 19:35 
AnswerRe: Please Help me soon Urgent Pin
N a v a n e e t h15-Apr-07 22:51
N a v a n e e t h15-Apr-07 22:51 

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.