Click here to Skip to main content
16,010,268 members
Home / Discussions / C#
   

C#

 
GeneralRe: System.Net.WebException XML timeout [modified] Pin
drifters20-Mar-07 5:08
drifters20-Mar-07 5:08 
GeneralRe: System.Net.WebException XML timeout Pin
Ed.Poore20-Mar-07 10:09
Ed.Poore20-Mar-07 10:09 
QuestionC# Sharp pproject Pin
dvdssali18-Mar-07 22:34
dvdssali18-Mar-07 22:34 
AnswerRe: C# Sharp pproject Pin
Stefan Troschuetz18-Mar-07 22:43
Stefan Troschuetz18-Mar-07 22:43 
AnswerRe: C# Sharp pproject Pin
DavidNohejl18-Mar-07 22:47
DavidNohejl18-Mar-07 22:47 
AnswerRe: C# Sharp pproject Pin
joon vh.19-Mar-07 1:38
joon vh.19-Mar-07 1:38 
Questionhow to write records in a dataset to a sql table Pin
rkherath18-Mar-07 21:47
rkherath18-Mar-07 21:47 
QuestionExport to Excel window Closed automatically Pin
rajesh rungta18-Mar-07 21:47
rajesh rungta18-Mar-07 21:47 
I am exporting data grid to excel. (Tech .Net, C#, Sql Server) It is working fine on my network ( work on both IE 6.0 and 7.0 version ) But on client side the window is closing itself automatically.
I hit the Client Site url from my pc it is working fine.
I am not able to spot the problem if there is any security reason there. The exported excel open as pop up window. Client tried after removing popup blocker also, still same problem exits. To my surprise if you press CTRL key and continue then the excel sheet is open there without problem.

Please suggest me for possible problem.
Thanks in advance.

------------------------CODE USED----------------------------
DataTable dt= con.GenrateReport(Convert.ToInt32( repconfigid),FormId,FormTypeId,fromDate,enddate,status);
dgReport.DataSource=dt;
dgReport.DataBind();
worksheetname=FormName + " Report";
//
// going to export into excel our grid
//
Context.Response.Buffer = true;
Context.Response.ClearContent();
Context.Response.ClearHeaders();
Context.Response.ContentType = "application/vnd.ms-excel";
Context.Response.ContentEncoding = System.Text.Encoding.Default;

Context.Response.AppendHeader("Content-Disposition", "attachment;filename=" + worksheetname + ".xls");
EnableViewState = true;
StringWriter tw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(tw);
tblGrid.RenderControl(hw);
//dgReport.RenderControl(hw);
Context.Response.Write(tw.ToString());
Context.Response.Flush();
Context.Response.Close();
Context.Response.End();


Raj Kumar
QuestionHow to convert C# Windows Application into C# Web Application Pin
MPS_DotNet18-Mar-07 21:04
MPS_DotNet18-Mar-07 21:04 
AnswerRe: How to convert C# Windows Application into C# Web Application Pin
V.18-Mar-07 23:34
professionalV.18-Mar-07 23:34 
AnswerRe: How to convert C# Windows Application into C# Web Application Pin
Colin Angus Mackay19-Mar-07 1:20
Colin Angus Mackay19-Mar-07 1:20 
AnswerRe: How to convert C# Windows Application into C# Web Application Pin
Dave Kreskowiak19-Mar-07 1:45
mveDave Kreskowiak19-Mar-07 1:45 
QuestionAuto Dialer IVR Pin
logicon18-Mar-07 20:06
logicon18-Mar-07 20:06 
AnswerRe: Auto Dialer IVR Pin
Vasudevan Deepak Kumar19-Mar-07 6:34
Vasudevan Deepak Kumar19-Mar-07 6:34 
Questiondatagrid with checkbox feature Pin
mohdmeraj18-Mar-07 20:04
mohdmeraj18-Mar-07 20:04 
AnswerRe: datagrid with checkbox feature Pin
joon vh.19-Mar-07 1:45
joon vh.19-Mar-07 1:45 
GeneralRe: datagrid with checkbox feature for pocket pc 2003 Pin
mohdmeraj19-Mar-07 20:15
mohdmeraj19-Mar-07 20:15 
QuestionSecurity Problem while installling Setup project Pin
sujithkumarsl18-Mar-07 20:01
sujithkumarsl18-Mar-07 20:01 
AnswerRe: Security Problem while installling Setup project Pin
joon vh.19-Mar-07 1:47
joon vh.19-Mar-07 1:47 
GeneralRe: Security Problem while installling Setup project Pin
sujithkumarsl19-Mar-07 2:36
sujithkumarsl19-Mar-07 2:36 
GeneralRe: Security Problem while installling Setup project Pin
joon vh.19-Mar-07 2:39
joon vh.19-Mar-07 2:39 
GeneralRe: Security Problem while installling Setup project Pin
sujithkumarsl19-Mar-07 19:22
sujithkumarsl19-Mar-07 19:22 
Questiondot net remoting Events Pin
Tauseef A18-Mar-07 19:52
Tauseef A18-Mar-07 19:52 
AnswerRe: dot net remoting Events Pin
b0ksah19-Mar-07 0:22
b0ksah19-Mar-07 0:22 
QuestionIs there a simple way to show an int as a string in its byte form? e.g 10 as "1010" Pin
Red_Wizard_Shot_The_Food18-Mar-07 14:02
Red_Wizard_Shot_The_Food18-Mar-07 14:02 

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.