open html page in new window using C#?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GoldenShiner
    New Member
    • Mar 2010
    • 4

    #1

    open html page in new window using C#?

    hello,
    I have a c# application which after clicking a button in infopath form, creates an HTML file. I would like to open this page in a NEW window, instead of what is actually doing, opening into under a tab. Any help will be greatly appreciated.
    <code>
    Code:
      fileName = ("Warningfile " + PHYS_MSTR_water_body_id.ToString() + " " + PHYS_MSTR_event_date.ToString() + " " + time_collected_hh.ToString() + " " + time_collected_minutes.ToString() + " " + PHYS_LOC_grid.ToString() + ".html");
                FileStream outputfile = null;                                                          path = "Warningfile " + PHYS_MSTR_water_body_id.ToString() + " " + PHYS_MSTR_event_date.ToString() + " " + time_collected_hh.ToString() + " " + time_collected_minutes.ToString() + " " + PHYS_LOC_grid.ToString() + ".html";   
                try
                {                             
                    outputfile = new FileStream(fileName, FileMode.Create, FileAccess.Write);                              
                   writer = new StreamWriter(outputfile);
                   writer.BaseStream.Seek(0, SeekOrigin.End);
                                DoWrite("<a><target='_blank'></a>");
                    DoWrite("<HTML>");
                    DoWrite("<HEAD>");
                    DoWrite("<TITLE>");...
    </code>
    Last edited by tlhintoq; Mar 26 '10, 06:53 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.

    Tags in the forms are in brackets.
    [code] not <code>

    Comment

    • GoldenShiner
      New Member
      • Mar 2010
      • 4

      #3
      oh, sorry about that, and thanks.

      Comment

      Working...