Click here to Skip to main content
15,912,977 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to run in linux...? Pin
Venkatesh Mookkan7-Jun-07 17:49
Venkatesh Mookkan7-Jun-07 17:49 
QuestionColoring of Dropdownlist items Pin
haasini7-Jun-07 5:07
haasini7-Jun-07 5:07 
AnswerRe: Coloring of Dropdownlist items Pin
Sathesh Sakthivel7-Jun-07 6:35
Sathesh Sakthivel7-Jun-07 6:35 
QuestionValidationGroup= doesn't fire in control Pin
Brendan Vogt7-Jun-07 4:55
Brendan Vogt7-Jun-07 4:55 
QuestionDB connection location. Pin
sergeyv20027-Jun-07 4:38
sergeyv20027-Jun-07 4:38 
AnswerRe: DB connection location. Pin
Not Active7-Jun-07 4:57
mentorNot Active7-Jun-07 4:57 
Questionexport datagrid to excel from a popup window Pin
D.Sridhar7-Jun-07 3:57
D.Sridhar7-Jun-07 3:57 
AnswerRe: export datagrid to excel from a popup window Pin
l0kke7-Jun-07 4:24
l0kke7-Jun-07 4:24 
I don't think you can display excel file in modal dialog. Can't you use window.open() instead of window.showModalDialog() ?

If you need to use modal dialog, then put an iframe in your modal dialog page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModalDialogPage.aspx.cs" Inherits="ModalDialogPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Excel export</title>

<link type="text/css" rel="Stylesheet" href="ModalDialogPage.css" />

</head>
<body>
<form id="form1" runat="server">
<div>
<iframe name="excelExporter" src="excelExporter.aspx"></iframe>
</div>
</form>
</body>
</html>

note stylesheet file modalDialogPage.css:

body
{
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
border: none 0px #000000;
width:100%;
height:100%;
}
iframe
{
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
border: none 0px #000000;
width:100%;
height:100%;
scrolling:no;
frameborderBlush | :O ;
}

and then you can put your excel generating code into your excelExporter.aspx page.

should be working!

Pilo
GeneralRe: export datagrid to excel from a popup window Pin
D.Sridhar7-Jun-07 4:41
D.Sridhar7-Jun-07 4:41 
GeneralRe: export datagrid to excel from a popup window Pin
D.Sridhar7-Jun-07 7:06
D.Sridhar7-Jun-07 7:06 
QuestionUploading problem Pin
ASPnoob7-Jun-07 3:04
ASPnoob7-Jun-07 3:04 
AnswerRe: Uploading problem Pin
Chetan Ranpariya7-Jun-07 3:29
Chetan Ranpariya7-Jun-07 3:29 
QuestionRe: Uploading problem [modified] Pin
ASPnoob7-Jun-07 8:05
ASPnoob7-Jun-07 8:05 
AnswerRe: Uploading problem Pin
Chetan Ranpariya7-Jun-07 20:27
Chetan Ranpariya7-Jun-07 20:27 
GeneralRe: Uploading problem [modified] Pin
ASPnoob7-Jun-07 22:18
ASPnoob7-Jun-07 22:18 
GeneralRe: Uploading problem Pin
ASPnoob8-Jun-07 16:03
ASPnoob8-Jun-07 16:03 
Questioncookie deletion Pin
deepalititi7-Jun-07 2:42
deepalititi7-Jun-07 2:42 
AnswerRe: cookie deletion Pin
Sylvester george7-Jun-07 2:57
Sylvester george7-Jun-07 2:57 
QuestionHow to insert item in RadioButtonList using java script in asp.net Pin
Rajesh_K_Sharma7-Jun-07 2:19
Rajesh_K_Sharma7-Jun-07 2:19 
AnswerRe: How to insert item in RadioButtonList using java script in asp.net Pin
Sathesh Sakthivel7-Jun-07 2:28
Sathesh Sakthivel7-Jun-07 2:28 
GeneralRe: How to insert item in RadioButtonList using java script in asp.net Pin
Rajesh_K_Sharma7-Jun-07 4:57
Rajesh_K_Sharma7-Jun-07 4:57 
GeneralRe: How to insert item in RadioButtonList using java script in asp.net Pin
revi227-Jun-07 5:01
revi227-Jun-07 5:01 
GeneralRe: How to insert item in RadioButtonList using java script in asp.net Pin
Guffa7-Jun-07 13:07
Guffa7-Jun-07 13:07 
GeneralRe: How to insert item in RadioButtonList using java script in asp.net Pin
Sathesh Sakthivel7-Jun-07 16:39
Sathesh Sakthivel7-Jun-07 16:39 
Questiontime zone [modified] Pin
Mohammad Daba'an7-Jun-07 1:29
Mohammad Daba'an7-Jun-07 1:29 

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.