Click here to Skip to main content
15,886,026 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: PostBack Problems Pin
Grapes-R-Fun19-Jul-06 15:44
Grapes-R-Fun19-Jul-06 15:44 
AnswerRe: PostBack Problems Pin
minhpc_bk19-Jul-06 15:37
minhpc_bk19-Jul-06 15:37 
QuestionValidation Control Pin
Armando_Ramirez19-Jul-06 6:36
Armando_Ramirez19-Jul-06 6:36 
AnswerRe: Validation Control Pin
Are Jay19-Jul-06 8:11
Are Jay19-Jul-06 8:11 
GeneralRe: Validation Control Pin
Armando_Ramirez19-Jul-06 9:54
Armando_Ramirez19-Jul-06 9:54 
GeneralRe: Validation Control Pin
Are Jay19-Jul-06 12:19
Are Jay19-Jul-06 12:19 
GeneralRe: Validation Control Pin
Grapes-R-Fun19-Jul-06 16:31
Grapes-R-Fun19-Jul-06 16:31 
QuestionExporting XML to Excel Error.... Pin
Are Jay19-Jul-06 5:43
Are Jay19-Jul-06 5:43 
I have created a report generator that creates an XML and passes it back to the browser as an Excel Doc. It works fine but the application lives within https and seems to kill the application with this error:
Microsoft Internet Explorer
Internet Explorer cannot download DataGrid.aspx from www.mysite.com.
Internet Explorer was not able to open Internet site.  The requested site is either unavailable or cannot be found. Please try again later.
This creates the XML based off user selection etc.....
Report_Gen.aspx
<br />
Dim dataDirPathXML As String = Server.MapPath("..\DataGrids\XML\")<br />
ds.WriteXml(dataDirPathXML & Session.SessionID & ".xml", XmlWriteMode.WriteSchema) <br />
Response.Redirect("..\DataGrids\DataGrid.aspx")             <br />

This passes the XML back as Excel.....
DataGrid.aspx
<br />
  Dim temp As String = Server.MapPath("XML\") & Session.SessionID & ".xml"<br />
  If System.IO.File.Exists(temp) Then<br />
    Dim streamReader As New System.IO.StreamReader(temp)<br />
    Dim sBuilder As New StringBuilder(streamReader.ReadToEnd)<br />
    Dim stringWrite As New System.IO.StringWriter(sBuilder)<br />
    Dim htmlWrite As New HtmlTextWriter(stringWrite)<br />
    Response.Clear()<br />
    Response.AddHeader("content-disposition", "attachment;filename=" & Session.SessionID & ".xls")<br />
    Response.Charset = ""<br />
    Response.Cache.SetCacheability(HttpCacheability.NoCache)<br />
    Response.ContentType = "application/vnd.xls"<br />
    Placeholder1.RenderControl(htmlWrite)<br />
    Response.Write(stringWrite.ToString())<br />
    Response.End()<br />
   End If<br />
I've been to the Server.MapPath("..\DataGrids\XML\") location and the xml is not being created.

What am I missing? I've tested this out-side the https and runs fine (local host or Live production server). Please any experiences with this kind of issue would be helpful.
AnswerRe: Exporting XML to Excel Error.... Pin
minhpc_bk19-Jul-06 17:30
minhpc_bk19-Jul-06 17:30 
GeneralRe: Exporting XML to Excel Error.... Pin
Are Jay21-Jul-06 5:30
Are Jay21-Jul-06 5:30 
Questionhow to display the date without the time.. Pin
ypsyong19-Jul-06 5:36
ypsyong19-Jul-06 5:36 
AnswerRe: how to display the date without the time.. Pin
Paddy Boyd19-Jul-06 5:47
Paddy Boyd19-Jul-06 5:47 
GeneralRe: how to display the date without the time.. Pin
ypsyong19-Jul-06 15:55
ypsyong19-Jul-06 15:55 
AnswerRe: how to display the date without the time.. Pin
Are Jay19-Jul-06 8:01
Are Jay19-Jul-06 8:01 
GeneralRe: how to display the date without the time.. Pin
ypsyong19-Jul-06 15:58
ypsyong19-Jul-06 15:58 
QuestionHow to deploy an ASP.Net application Pin
Sayed Muhammad Imran19-Jul-06 4:23
Sayed Muhammad Imran19-Jul-06 4:23 
AnswerRe: How to deploy an ASP.Net application Pin
mnaveed19-Jul-06 4:51
mnaveed19-Jul-06 4:51 
QuestionChanges only show on refresh [modified] Pin
cyber-will19-Jul-06 3:39
cyber-will19-Jul-06 3:39 
AnswerRe: Changes only show on refresh Pin
minhpc_bk19-Jul-06 16:44
minhpc_bk19-Jul-06 16:44 
GeneralRe: Changes only show on refresh Pin
cyber-will19-Jul-06 21:04
cyber-will19-Jul-06 21:04 
QuestionThe server rejected one or more recipient addresses Pin
srinandan..19-Jul-06 3:21
srinandan..19-Jul-06 3:21 
AnswerRe: The server rejected one or more recipient addresses Pin
cyber-will19-Jul-06 3:42
cyber-will19-Jul-06 3:42 
GeneralRe: The server rejected one or more recipient addresses Pin
Chandrasekhar Telkapalli19-Jul-06 4:16
Chandrasekhar Telkapalli19-Jul-06 4:16 
GeneralRe: The server rejected one or more recipient addresses Pin
cyber-will19-Jul-06 4:20
cyber-will19-Jul-06 4:20 
QuestionADS authentication to a network folder Pin
Rameez Mohammed19-Jul-06 2:56
Rameez Mohammed19-Jul-06 2:56 

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.