Click here to Skip to main content
15,917,702 members
Home / Discussions / C#
   

C#

 
GeneralRe: Authenticate against localhost and AD Pin
Nick Parker28-Jun-04 3:12
protectorNick Parker28-Jun-04 3:12 
GeneralProblem on terminating an application Pin
Ravikumar_mv27-Jun-04 22:30
Ravikumar_mv27-Jun-04 22:30 
GeneralRe: Problem on terminating an application Pin
Stefan Troschuetz27-Jun-04 23:10
Stefan Troschuetz27-Jun-04 23:10 
GeneralRe: Problem on terminating an application Pin
Ravikumar_mv27-Jun-04 23:57
Ravikumar_mv27-Jun-04 23:57 
GeneralRe: Problem on terminating an application Pin
Stefan Troschuetz28-Jun-04 0:28
Stefan Troschuetz28-Jun-04 0:28 
GeneralRe: Problem on terminating an application Pin
Dave Kreskowiak28-Jun-04 4:22
mveDave Kreskowiak28-Jun-04 4:22 
GeneralRe: Problem on terminating an application Pin
Ravikumar_mv29-Jun-04 23:03
Ravikumar_mv29-Jun-04 23:03 
GeneralNo data found when exporting dataset to excel Pin
Anonymous27-Jun-04 22:22
Anonymous27-Jun-04 22:22 
Hi,

I just can export table structure to excel. No data found. Pls help.

here is my code :
......
this.sqlDataAdapter.Fill(this.dsTables, "testTable");

DataGrid dg = new DataGrid();
dg.DataSource = this.dsTables.Tables["testTable"];
dg.DataBind();

Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.enableViewState = false;

System.IO.StringWriter tw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(tw);

dg.RenderControl(hw);

Response.Write(tw.ToString());
Response.End();


Thanks
Wilson

GeneralRe: No data found when exporting dataset to excel Pin
Dave Kreskowiak28-Jun-04 4:14
mveDave Kreskowiak28-Jun-04 4:14 
GeneralRe: No data found when exporting dataset to excel Pin
Heath Stewart28-Jun-04 4:16
protectorHeath Stewart28-Jun-04 4:16 
GeneralDataSet generator error Pin
Member 114126627-Jun-04 20:16
Member 114126627-Jun-04 20:16 
GeneralRe: DataSet generator error Pin
Dave Kreskowiak28-Jun-04 4:05
mveDave Kreskowiak28-Jun-04 4:05 
GeneralRe: DataSet generator error Pin
Heath Stewart28-Jun-04 4:11
protectorHeath Stewart28-Jun-04 4:11 
GeneralRe: DataSet generator error Pin
Member 114126629-Jun-04 2:10
Member 114126629-Jun-04 2:10 
QuestionBest way to print an image that may be larger than one page? Pin
Pain_Elemental27-Jun-04 20:15
Pain_Elemental27-Jun-04 20:15 
AnswerRe: Best way to print an image that may be larger than one page? Pin
Heath Stewart28-Jun-04 3:55
protectorHeath Stewart28-Jun-04 3:55 
GeneralOne more security question Pin
MKlucher27-Jun-04 18:36
MKlucher27-Jun-04 18:36 
GeneralRe: One more security question Pin
Heath Stewart27-Jun-04 18:44
protectorHeath Stewart27-Jun-04 18:44 
GeneralRe: One more security question Pin
MKlucher27-Jun-04 19:03
MKlucher27-Jun-04 19:03 
GeneralRe: One more security question Pin
Heath Stewart27-Jun-04 19:12
protectorHeath Stewart27-Jun-04 19:12 
GeneralRun Expect scripts from managed code Pin
inyoursadachine27-Jun-04 18:07
inyoursadachine27-Jun-04 18:07 
GeneralRe: Run Expect scripts from managed code Pin
Heath Stewart27-Jun-04 18:18
protectorHeath Stewart27-Jun-04 18:18 
GeneralMPEG to AVI Pin
BigBlob20227-Jun-04 10:51
BigBlob20227-Jun-04 10:51 
GeneralRe: MPEG to AVI Pin
leppie27-Jun-04 13:13
leppie27-Jun-04 13:13 
GeneralRe: MPEG to AVI Pin
BigBlob20227-Jun-04 14:23
BigBlob20227-Jun-04 14:23 

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.