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

ASP.NET

 
AnswerRe: how to retrive and store image insql server database with making use of ASP/vb.net and using html file feild control Pin
Not Active19-Jul-06 8:59
mentorNot Active19-Jul-06 8:59 
GeneralRe: how to retrive and store image insql server database with making use of ASP/vb.net and using html file feild control Pin
alhomed4424-Jul-06 6:56
alhomed4424-Jul-06 6:56 
GeneralRe: how to retrive and store image insql server database with making use of ASP/vb.net and using html file feild control Pin
Not Active24-Jul-06 7:05
mentorNot Active24-Jul-06 7:05 
QuestionPostBack Problems Pin
Rhlye19-Jul-06 7:14
Rhlye19-Jul-06 7:14 
AnswerRe: PostBack Problems Pin
Are Jay19-Jul-06 8:14
Are Jay19-Jul-06 8:14 
GeneralRe: PostBack Problems Pin
Rhlye19-Jul-06 11:38
Rhlye19-Jul-06 11:38 
GeneralRe: PostBack Problems Pin
Are Jay19-Jul-06 11:40
Are Jay19-Jul-06 11:40 
GeneralRe: PostBack Problems Pin
Rhlye19-Jul-06 13:40
Rhlye19-Jul-06 13:40 
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 

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.