Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
GeneralRe: CheckBox ListView Multiple Selection Problem c# Pin
varunpandeyengg10-Jul-11 21:18
varunpandeyengg10-Jul-11 21:18 
AnswerRe: CheckBox ListView Multiple Selection Problem c# Pin
varunpandeyengg11-Jul-11 1:00
varunpandeyengg11-Jul-11 1:00 
QuestionData in the gridview cell should get select Pin
NarVish8-Jul-11 0:54
NarVish8-Jul-11 0:54 
AnswerMessage Removed Pin
8-Jul-11 3:07
0bx8-Jul-11 3:07 
GeneralRe: Data in the gridview cell should get select Pin
Not Active8-Jul-11 3:35
mentorNot Active8-Jul-11 3:35 
AnswerRe: Data in the gridview cell should get select Pin
Rhys Gravell8-Jul-11 3:24
professionalRhys Gravell8-Jul-11 3:24 
AnswerRe: Data in the gridview cell should get select Pin
Carmelo La Monica8-Jul-11 6:18
professionalCarmelo La Monica8-Jul-11 6:18 
QuestionProblem wirh Response.End() while exporting Datatable results to Excel file. Pin
madhubabu7-Jul-11 7:52
madhubabu7-Jul-11 7:52 
Hi,
I have a datatable from which i am exporting the results to Excel file.The exporting happens perfectly....But web page is not getting loaded completely.Its because of the Response.End();.It terminates the execution of the page further.
Because I have some other code after Response.End(); to get executed and needs to be displayed in the page.Is there a way to get the complete execution of the page.I am struck with this problem for while now..........Any help is appreciated.

DataTable dtMemberList = LinqToDatatable.LinqToDataTable(MembersList);
string attachment = "attachment; filename=Search.xls";
Response.ClearContent();
Response.AddHeader("content-disposition", attachment);
Response.ContentType = "application/vnd.ms-excel";
Response.Write("\n");
Response.Write("Search Results");
Response.Write("\n");
string tab = "";

Response.Write(tab + "Member ID");
tab = "\t";
Response.Write(tab + "Memberdoc Received Date");
tab = "\t";
Response.Write(tab + "Memberdoc Import Date");
tab = "\t";
Response.Write(tab + "Memberdoc Status");
tab = "\t";
Response.Write(tab + "Memberdoc Type");
Response.Write("\n");
int i;
foreach (DataRow dr in dtMemberList.Rows)
{
tab = "";
for (i = 0; i < dtMemberList.Columns.Count; i++)
{
Response.Write(tab + dr[i].ToString());
tab = "\t";
}
Response.Write("\n");
}
Response.End();
AnswerRe: Problem wirh Response.End() while exporting Datatable results to Excel file. Pin
Not Active7-Jul-11 8:54
mentorNot Active7-Jul-11 8:54 
AnswerRe: Problem wirh Response.End() while exporting Datatable results to Excel file. Pin
Pete O'Hanlon7-Jul-11 23:01
mvePete O'Hanlon7-Jul-11 23:01 
QuestionHow connect to DB from c# Pin
DreadBoy57-Jul-11 6:42
DreadBoy57-Jul-11 6:42 
AnswerRe: How connect to DB from c# Pin
Eddy Vluggen7-Jul-11 6:46
professionalEddy Vluggen7-Jul-11 6:46 
AnswerRe: How connect to DB from c# Pin
Abhinav S7-Jul-11 7:35
Abhinav S7-Jul-11 7:35 
AnswerRe: How connect to DB from c# Pin
PIEBALDconsult7-Jul-11 14:33
mvePIEBALDconsult7-Jul-11 14:33 
AnswerRe: How connect to DB from c# Pin
dbongs7-Jul-11 20:54
dbongs7-Jul-11 20:54 
AnswerRe: How connect to DB from c# Pin
RaviRanjanKr10-Jul-11 10:57
professionalRaviRanjanKr10-Jul-11 10:57 
QuestionConversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update Pin
Paramu19737-Jul-11 2:15
Paramu19737-Jul-11 2:15 
AnswerRe: Conversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update Pin
Not Active7-Jul-11 2:35
mentorNot Active7-Jul-11 2:35 
AnswerRe: Conversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update Pin
Richard MacCutchan7-Jul-11 2:37
mveRichard MacCutchan7-Jul-11 2:37 
AnswerRe: Conversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update[modified] Pin
Dan Mos7-Jul-11 2:38
Dan Mos7-Jul-11 2:38 
AnswerRe: Conversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update Pin
dasblinkenlight7-Jul-11 2:40
dasblinkenlight7-Jul-11 2:40 
AnswerRe: Conversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update Pin
PIEBALDconsult7-Jul-11 2:58
mvePIEBALDconsult7-Jul-11 2:58 
AnswerRe: Conversion of varchar datatype to a datetime resultant in an out renge value- Sql Server 2008 - Update Pin
#realJSOP7-Jul-11 3:08
mve#realJSOP7-Jul-11 3:08 
QuestionHow to create list of ALL file associations(friendly application names & executables) for file type Pin
JViljoen6-Jul-11 23:20
JViljoen6-Jul-11 23:20 
AnswerRe: How to create list of ALL file associations(friendly application names & executables) for file type Pin
Mario Majčica7-Jul-11 10:42
professionalMario Majčica7-Jul-11 10:42 

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.