Click here to Skip to main content
15,898,374 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: DataView Pin
ASPnoob6-Aug-07 23:02
ASPnoob6-Aug-07 23:02 
GeneralRe: DataView Pin
Piyush Vardhan Singh6-Aug-07 23:17
Piyush Vardhan Singh6-Aug-07 23:17 
AnswerRe: DataView Pin
Piyush Vardhan Singh6-Aug-07 22:59
Piyush Vardhan Singh6-Aug-07 22:59 
GeneralRe: DataView Pin
Sonia Gupta6-Aug-07 23:02
Sonia Gupta6-Aug-07 23:02 
GeneralRe: DataView Pin
Piyush Vardhan Singh6-Aug-07 23:28
Piyush Vardhan Singh6-Aug-07 23:28 
GeneralRe: DataView Pin
Imran Khan Pathan6-Aug-07 23:43
Imran Khan Pathan6-Aug-07 23:43 
GeneralRe: DataView Pin
Sonia Gupta6-Aug-07 23:47
Sonia Gupta6-Aug-07 23:47 
Questiongridview does not get exported to explorer Pin
imranafsari6-Aug-07 21:46
imranafsari6-Aug-07 21:46 
Dear all,

i am using asp.net ,C# , Microsoft internet explorer 6 version ans iis5.0.

My problem is gridview data does not get exported in explorer whereas when i select firefox it exported to excel.
i change the internet security setting to low and added the site to trusted sites .

what could be the reason.

please help.

code to export is

Response.Clear();

Response.AddHeader("content-disposition", "attachmentfilename=FileName.xls");

Response.Charset = "";

// If you want the option to open the Excel file without saving than

// comment out the line below

Response.Cache.SetCacheability(HttpCacheability.NoCache);

Response.ContentType = "application/vnd.xls";

System.IO.StringWriter stringWrite = new System.IO.StringWriter();

System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);

GridView1.RenderControl(htmlWrite);

Response.Write(stringWrite.ToString());

Response.End();



please guide me.



thanks





imaran khan

Questionaspx page redirect not working in iframe tag [modified] Pin
rama charan6-Aug-07 21:24
rama charan6-Aug-07 21:24 
AnswerRe: aspx page redirect not working in iframe tag Pin
Vasudevan Deepak Kumar6-Aug-07 23:08
Vasudevan Deepak Kumar6-Aug-07 23:08 
GeneralRe: aspx page redirect not working in iframe tag Pin
rama charan7-Aug-07 1:48
rama charan7-Aug-07 1:48 
QuestionWeb Based installation Pin
vipin_nvk6-Aug-07 21:04
vipin_nvk6-Aug-07 21:04 
AnswerRe: Web Based installation Pin
Vasudevan Deepak Kumar6-Aug-07 22:42
Vasudevan Deepak Kumar6-Aug-07 22:42 
QuestionDisplaying data on a gridview Pin
Mamphekgo Bahula6-Aug-07 20:58
Mamphekgo Bahula6-Aug-07 20:58 
AnswerRe: Displaying data on a gridview Pin
gauthee6-Aug-07 21:04
gauthee6-Aug-07 21:04 
GeneralRe: Displaying data on a gridview Pin
Mamphekgo Bahula6-Aug-07 21:28
Mamphekgo Bahula6-Aug-07 21:28 
GeneralRe: Displaying data on a gridview Pin
Mamphekgo Bahula6-Aug-07 21:29
Mamphekgo Bahula6-Aug-07 21:29 
AnswerRe: Displaying data on a gridview Pin
sulabh20206-Aug-07 21:04
sulabh20206-Aug-07 21:04 
AnswerRe: Displaying data on a gridview Pin
VanithaVasu6-Aug-07 21:58
VanithaVasu6-Aug-07 21:58 
GeneralRe: Displaying data on a gridview Pin
Sonia Gupta6-Aug-07 21:25
Sonia Gupta6-Aug-07 21:25 
GeneralRe: Displaying data on a gridview Pin
Mamphekgo Bahula6-Aug-07 21:45
Mamphekgo Bahula6-Aug-07 21:45 
AnswerRe: Displaying data on a gridview Pin
N a v a n e e t h6-Aug-07 22:48
N a v a n e e t h6-Aug-07 22:48 
QuestionMaintain values of Dynamic Dropdownlists in datagrid Pin
VanithaVasu6-Aug-07 20:46
VanithaVasu6-Aug-07 20:46 
AnswerRe: Maintain values of Dynamic Dropdownlists in datagrid Pin
gauthee6-Aug-07 20:54
gauthee6-Aug-07 20:54 
GeneralRe: Maintain values of Dynamic Dropdownlists in datagrid Pin
VanithaVasu6-Aug-07 21:20
VanithaVasu6-Aug-07 21:20 

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.