Click here to Skip to main content
15,885,757 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ajax popup extender black background around the window Pin
Tyarla7-Apr-10 0:26
Tyarla7-Apr-10 0:26 
QuestionHelp with This Error --> Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
felipependragon6-Apr-10 3:19
felipependragon6-Apr-10 3:19 
AnswerRe: Help with This Error --> Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
felipependragon6-Apr-10 5:00
felipependragon6-Apr-10 5:00 
Questionhow to remove the rows from the gridview control when check box is unchecked Pin
developerit5-Apr-10 23:52
developerit5-Apr-10 23:52 
AnswerRe: how to remove the rows from the gridview control when check box is unchecked Pin
m@dhu6-Apr-10 0:39
m@dhu6-Apr-10 0:39 
AnswerRe: how to remove the rows from the gridview control when check box is unchecked Pin
Brij6-Apr-10 0:43
mentorBrij6-Apr-10 0:43 
AnswerRe: how to remove the rows from the gridview control when check box is unchecked Pin
carlecomm7-Apr-10 2:38
carlecomm7-Apr-10 2:38 
QuestionExport GridView Only to Excel in asp.net Pin
Abdul Rahman Hamidy5-Apr-10 23:31
Abdul Rahman Hamidy5-Apr-10 23:31 
Dear All,
I am exporting grid view to excel using following code
void Export()
{
        string attachment = "attachment; filename=Contacts.xls";
        Response.ClearContent();
        Response.AddHeader("content-disposition", attachment);
        Response.ContentType = "application/ms-excel";
        StringWriter sw = new StringWriter();
        HtmlTextWriter htw = new HtmlTextWriter(sw);
        GridView1.RenderControl(htw);
        Response.Write(sw.ToString());
        Response.End();
}

but what happens, It exports all the control to excel. I have button, listbox and other controls above my GridView but when exporting I want to export only my gridview to Excel
using above code all the page is exported,

any ideas how to export only gridview to excel?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan

AnswerRe: Export GridView Only to Excel in asp.net Pin
Dinesh Mani5-Apr-10 23:58
Dinesh Mani5-Apr-10 23:58 
GeneralRe: Export GridView Only to Excel in asp.net Pin
Abdul Rahman Hamidy6-Apr-10 0:13
Abdul Rahman Hamidy6-Apr-10 0:13 
AnswerRe: Export GridView Only to Excel in asp.net Pin
Arun Jacob6-Apr-10 0:02
Arun Jacob6-Apr-10 0:02 
GeneralRe: Export GridView Only to Excel in asp.net Pin
Abdul Rahman Hamidy6-Apr-10 0:21
Abdul Rahman Hamidy6-Apr-10 0:21 
QuestionGantt Control Pin
ziwez05-Apr-10 23:19
ziwez05-Apr-10 23:19 
AnswerRe: Gantt Control Pin
Steven J Jowett6-Apr-10 0:29
Steven J Jowett6-Apr-10 0:29 
QuestionSystem for sharing a browser session between two clients [modified] Pin
Samarjeet Singh@india5-Apr-10 21:46
Samarjeet Singh@india5-Apr-10 21:46 
AnswerRe: System for sharing a browser session between two clients Pin
Venkatesh Mookkan6-Apr-10 17:40
Venkatesh Mookkan6-Apr-10 17:40 
GeneralRe: System for sharing a browser session between two clients Pin
Samarjeet Singh@india6-Apr-10 20:26
Samarjeet Singh@india6-Apr-10 20:26 
GeneralRe: System for sharing a browser session between two clients Pin
Venkatesh Mookkan7-Apr-10 1:11
Venkatesh Mookkan7-Apr-10 1:11 
QuestionIIS hosting problem Pin
Amit Patel19855-Apr-10 21:14
Amit Patel19855-Apr-10 21:14 
AnswerRe: IIS hosting problem Pin
Brij5-Apr-10 21:41
mentorBrij5-Apr-10 21:41 
AnswerRe: IIS hosting problem Pin
Abhijit Jana6-Apr-10 8:05
professionalAbhijit Jana6-Apr-10 8:05 
QuestionDisable menu item Pin
Paulraj G5-Apr-10 20:59
Paulraj G5-Apr-10 20:59 
AnswerRe: Disable menu item Pin
Arun Jacob5-Apr-10 21:17
Arun Jacob5-Apr-10 21:17 
GeneralRe: Disable menu item Pin
Paulraj G5-Apr-10 21:21
Paulraj G5-Apr-10 21:21 
AnswerRe: Disable menu item Pin
Arun Jacob5-Apr-10 21:47
Arun Jacob5-Apr-10 21:47 

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.