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

ASP.NET

 
GeneralRe: How to get full path from fileupload control or every thing from client side? Pin
Saba0211-Aug-09 23:14
Saba0211-Aug-09 23:14 
QuestionCSV files Pin
dotnetmember11-Aug-09 22:06
dotnetmember11-Aug-09 22:06 
AnswerRe: CSV files Pin
r a m e s h11-Aug-09 22:20
r a m e s h11-Aug-09 22:20 
AnswerRe: CSV files Pin
Abhishek Sur12-Aug-09 0:45
professionalAbhishek Sur12-Aug-09 0:45 
QuestionClose any Specific page Pin
Pankaj1811-Aug-09 22:03
Pankaj1811-Aug-09 22:03 
AnswerRe: Close any Specific page Pin
Abhijit Jana11-Aug-09 22:29
professionalAbhijit Jana11-Aug-09 22:29 
AnswerRe: Close any Specific page Pin
Abhishek Sur11-Aug-09 23:16
professionalAbhishek Sur11-Aug-09 23:16 
QuestionHow to open html file in new window Pin
33Segal11-Aug-09 21:43
33Segal11-Aug-09 21:43 
Hi,
Im creating some little export module of an html page to different file type (xml html pdf etc)
When im exporting the page to html the file download pop up appears.
so far so good , however,
When I choose to open it , it opens on the current window.
How do i open it in another window or tab
thanks in advance

here is my code

StringBuilder str = new StringBuilder();
str.Append("<HTML>");
str.Append("<HEAD>");
str.Append("<TITLE></TITLE>");
str.Append("</HEAD>");
str.Append("<BODY>");
str.Append("<CENTER>");
this.page.Response.Clear();
this.page.Response.AddHeader("content-disposition","attachment;filename=StationData.htm");
this.page.Response.Charset = "";
this.page.Response.ContentType = "application/vnd.html";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
this.page.Response.Write(str.ToString());
this.page.Response.End();
AnswerRe: How to open html file in new window Pin
yesu prakash12-Aug-09 0:26
yesu prakash12-Aug-09 0:26 
GeneralRe: How to open html file in new window Pin
33Segal12-Aug-09 4:17
33Segal12-Aug-09 4:17 
AnswerRe: How to open html file in new window Pin
Abhishek Sur12-Aug-09 0:46
professionalAbhishek Sur12-Aug-09 0:46 
AnswerRe: How to open html file in new window Pin
yesu prakash12-Aug-09 18:21
yesu prakash12-Aug-09 18:21 
QuestionSmephore Issue Pin
Member 330096911-Aug-09 21:13
Member 330096911-Aug-09 21:13 
QuestionVisitor count Pin
kavinnagarajan11-Aug-09 21:08
kavinnagarajan11-Aug-09 21:08 
AnswerRe: Visitor count Pin
Sneha Bisht11-Aug-09 21:12
Sneha Bisht11-Aug-09 21:12 
GeneralVisitor count Pin
kavinnagarajan11-Aug-09 21:21
kavinnagarajan11-Aug-09 21:21 
GeneralRe: Visitor count Pin
Abhishek Sur12-Aug-09 0:47
professionalAbhishek Sur12-Aug-09 0:47 
Questionweb development Pin
Member 430984511-Aug-09 20:56
Member 430984511-Aug-09 20:56 
Questionhow to create an xml file dynamically Pin
karthikeyanruby11-Aug-09 20:53
karthikeyanruby11-Aug-09 20:53 
AnswerRe: how to create an xml file dynamically Pin
Abhijit Jana11-Aug-09 21:25
professionalAbhijit Jana11-Aug-09 21:25 
AnswerRe: how to create an xml file dynamically Pin
yesu prakash11-Aug-09 23:41
yesu prakash11-Aug-09 23:41 
Questionconnection string Pin
KhandelwalA11-Aug-09 19:29
KhandelwalA11-Aug-09 19:29 
AnswerRe: connection string Pin
Christian Graus11-Aug-09 19:36
protectorChristian Graus11-Aug-09 19:36 
GeneralRe: connection string Pin
Viral Upadhyay11-Aug-09 20:09
Viral Upadhyay11-Aug-09 20:09 
AnswerRe: connection string Pin
Abhijit Jana11-Aug-09 20:01
professionalAbhijit Jana11-Aug-09 20:01 

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.