Click here to Skip to main content
15,923,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 11:38
professionalRichard Andrew x6416-Feb-16 11:38 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 12:03
Crazy Joe Devola16-Feb-16 12:03 
GeneralRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 12:27
professionalRichard Andrew x6416-Feb-16 12:27 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 12:46
Crazy Joe Devola16-Feb-16 12:46 
AnswerRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 13:12
Crazy Joe Devola16-Feb-16 13:12 
GeneralRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 13:15
professionalRichard Andrew x6416-Feb-16 13:15 
QuestionHow to read and print *.plt file by C# Pin
tienich15-Feb-16 22:01
tienich15-Feb-16 22:01 
AnswerRe: How to read and print *.plt file by C# Pin
Pete O'Hanlon15-Feb-16 22:32
mvePete O'Hanlon15-Feb-16 22:32 
QuestionCopy File From Server With Progress And Completion Pin
Kevin Marois15-Feb-16 18:42
professionalKevin Marois15-Feb-16 18:42 
AnswerRe: Copy File From Server With Progress And Completion Pin
Garth J Lancaster15-Feb-16 19:26
professionalGarth J Lancaster15-Feb-16 19:26 
AnswerRe: Copy File From Server With Progress And Completion Pin
Richard Deeming16-Feb-16 2:06
mveRichard Deeming16-Feb-16 2:06 
GeneralRe: Copy File From Server With Progress And Completion Pin
Kevin Marois16-Feb-16 3:38
professionalKevin Marois16-Feb-16 3:38 
AnswerRe: Copy File From Server With Progress And Completion Pin
Pete O'Hanlon16-Feb-16 2:10
mvePete O'Hanlon16-Feb-16 2:10 
GeneralRe: Copy File From Server With Progress And Completion Pin
Kevin Marois16-Feb-16 3:36
professionalKevin Marois16-Feb-16 3:36 
QuestionIcon on "Dekstop" Pin
Member 1224802815-Feb-16 12:01
Member 1224802815-Feb-16 12:01 
QuestionRe: Icon on "Dekstop" Pin
ZurdoDev15-Feb-16 13:55
professionalZurdoDev15-Feb-16 13:55 
AnswerRe: Icon on "Dekstop" Pin
Gerry Schmitz16-Feb-16 6:05
mveGerry Schmitz16-Feb-16 6:05 
Questionsingle submit button with multiple tabs Pin
Sandy Safwat15-Feb-16 7:19
Sandy Safwat15-Feb-16 7:19 
I have three pages
page 1 :through a submit button in page 1 ...
I want to be redirected in page2 in new tab and page3 in the same tab.
Is that possible?
Page1 contains :
C#
using (MemoryStream memoryStream = new MemoryStream())
{

    document.Save(memoryStream, false);

    memoryStream.Position = 0;


    Session["BinaryData"] = memoryStream.ToArray();

    ScriptManager.RegisterStartupScript(this, this.GetType(), "openPDF", "javascript:window.open('../../Service/Pages/Page2.aspx');", true);

    Response.Redirect('../../Service/Pages/Page3.aspx');
}

page2: to be opened in a new tab
C#
protected void Page_Load(object sender, EventArgs e)
       {
           if (Session["BinaryData"] != null)
           {

               Response.Clear();
               Response.ContentType = "application/pdf";
               Response.AddHeader("Content-Disposition", "inline; filename=" + filename);
               ////Write the MemoryStream to the Response.
               Response.BinaryWrite((byte[])Session["BinaryData"]);
           }


then page 3:
will be redirected in the same tab

Thanks in advance Smile | :)
AnswerRe: single submit button with multiple tabs Pin
Richard Deeming15-Feb-16 8:09
mveRichard Deeming15-Feb-16 8:09 
GeneralRe: single submit button with multiple tabs Pin
Sandy Safwat15-Feb-16 9:19
Sandy Safwat15-Feb-16 9:19 
GeneralRe: single submit button with multiple tabs Pin
Richard Deeming15-Feb-16 9:32
mveRichard Deeming15-Feb-16 9:32 
GeneralRe: single submit button with multiple tabs Pin
Sandy Safwat15-Feb-16 10:27
Sandy Safwat15-Feb-16 10:27 
GeneralRe: single submit button with multiple tabs Pin
Richard Deeming15-Feb-16 10:48
mveRichard Deeming15-Feb-16 10:48 
GeneralRe: single submit button with multiple tabs Pin
Mycroft Holmes15-Feb-16 13:39
professionalMycroft Holmes15-Feb-16 13:39 
GeneralRe: single submit button with multiple tabs Pin
Sandy Safwat15-Feb-16 18:38
Sandy Safwat15-Feb-16 18:38 

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.