|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
context response or server.transfer to target = _blankHello,
I need to open a new page (target = _blank) for processing form data and displaying a result from within the codebehind. Ideally, I would like to use server.transfer("x", true); The user clicks the "Proccess" button, I do some data manipulation in the codebehind, then I need to display a new Web page that will further process and then display the resultant information. Thanks for your help in advance, Craig "Craig" <notforl***@radicalage.com> wrote in message Sounds like you need the Wizard control:news:93963059-0472-47C4-9B2C-DD24B2497A0F@microsoft.com... > I need to open a new page (target="_blank") for processing form data and > displaying a result from within the codebehind. Ideally, I would like to > use server.transfer("x", true); > > The user clicks the "Proccess" button, I do some data manipulation in the > codebehind, then I need to display a new Web page that will further > process and then display the resultant information. > > Thanks for your help in advance, http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=asp:Wizard No need to pop a new browser window. Hi,
Thanks for your response. I do not believe that a Wizard will do what I need. What I will be displaying to the user is a .PDF and I really need it to be in its own page, as many users get lost and confused with the navigation if a pdf displays in the original page (and my users are not the most sophiticated). Thanks again, Craig Show quoteHide quote "Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message news:%23BUFO4MAKHA.1252@TK2MSFTNGP04.phx.gbl... > "Craig" <notforl***@radicalage.com> wrote in message > news:93963059-0472-47C4-9B2C-DD24B2497A0F@microsoft.com... > >> I need to open a new page (target="_blank") for processing form data and >> displaying a result from within the codebehind. Ideally, I would like to >> use server.transfer("x", true); >> >> The user clicks the "Proccess" button, I do some data manipulation in the >> codebehind, then I need to display a new Web page that will further >> process and then display the resultant information. >> >> Thanks for your help in advance, > > Sounds like you need the Wizard control: > http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=asp:Wizard > > No need to pop a new browser window. > > > -- > Mark Rae > ASP.NET MVP > http://www.markrae.net "Craig" <notforl***@radicalage.com> wrote in message [please don't top-post]news:D288EA88-CF95-4335-B310-C15705B51AB0@microsoft.com... http://www.caliburn.nl/topposting.html Show quoteHide quote >>> I need to open a new page (target="_blank") for processing form data and Why didn't you mention this in your original post...?>>> displaying a result from within the codebehind. Ideally, I would like to >>> use server.transfer("x", true); >>> >>> The user clicks the "Proccess" button, I do some data manipulation in >>> the codebehind, then I need to display a new Web page that will further >>> process and then display the resultant information. >>> >>> Thanks for your help in advance, >> >> Sounds like you need the Wizard control: >> http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=asp:Wizard >> >> No need to pop a new browser window. > > Thanks for your response. I do not believe that a Wizard will do what I > need. > > What I will be displaying to the user is a .PDF and I really need it to be > in its own page, as many users get lost and confused with the navigation > if a pdf displays in the original page (and my users are not the most > sophisticated). Sorry.
However, after rereading my original post, my question seemed clear enough: how do I open a new _blank target window from codebehind? I did not think that the type of content to be displayed altered the nature of the question. Only when you proposed a solution that did not address my question did I deem it necessary to expand as to why your suggestion would not work. Nonetheless, I still appreciate your time and suggestion. Craig Show quoteHide quote "Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message news:OXzSvcNAKHA.4984@TK2MSFTNGP05.phx.gbl... > "Craig" <notforl***@radicalage.com> wrote in message > news:D288EA88-CF95-4335-B310-C15705B51AB0@microsoft.com... > > [please don't top-post] > http://www.caliburn.nl/topposting.html > >>>> I need to open a new page (target="_blank") for processing form data >>>> and displaying a result from within the codebehind. Ideally, I would >>>> like to use server.transfer("x", true); >>>> >>>> The user clicks the "Proccess" button, I do some data manipulation in >>>> the codebehind, then I need to display a new Web page that will further >>>> process and then display the resultant information. >>>> >>>> Thanks for your help in advance, >>> >>> Sounds like you need the Wizard control: >>> http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=asp:Wizard >>> >>> No need to pop a new browser window. >> >> Thanks for your response. I do not believe that a Wizard will do what I >> need. >> >> What I will be displaying to the user is a .PDF and I really need it to >> be in its own page, as many users get lost and confused with the >> navigation if a pdf displays in the original page (and my users are not >> the most sophisticated). > > Why didn't you mention this in your original post...? > > > -- > Mark Rae > ASP.NET MVP > http://www.markrae.net "Craig" <notforl***@radicalage.com> wrote in message *** [please don't top-post] ***news:167BE1D0-2A59-483D-83E1-4C96CADAE7F3@microsoft.com... http://www.caliburn.nl/topposting.html >>> What I will be displaying to the user is a .PDF and I really need it to You can't. Code behind is server-side and, as such, has no control over the >>> be in its own page, as many users get lost and confused with the >>> navigation if a pdf displays in the original page (and my users are not >>> the most sophisticated). >> >> Why didn't you mention this in your original post...? > > However, after rereading my original post, my question seemed clear > enough: how do I open a new _blank target window from codebehind? client browser - all it can do is send it an HTML stream Interaction with the client browser needs to be done with client-side JavaScript. Therefore, the code-behind will need to emit client-side JavaScript in the HTML stream e.g. ClientScript.RegisterStartupScript(GetType(), "open", "window.open(............);", true); Not recommended... This is as I understood it, but I thought (hoped) that there might be some
trick I was unaware of. Thank you again for your time. Craig Show quoteHide quote "Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message news:%23%23JhiDOAKHA.1208@TK2MSFTNGP03.phx.gbl... > "Craig" <notforl***@radicalage.com> wrote in message > news:167BE1D0-2A59-483D-83E1-4C96CADAE7F3@microsoft.com... > > *** [please don't top-post] *** > http://www.caliburn.nl/topposting.html > >>>> What I will be displaying to the user is a .PDF and I really need it to >>>> be in its own page, as many users get lost and confused with the >>>> navigation if a pdf displays in the original page (and my users are not >>>> the most sophisticated). >>> >>> Why didn't you mention this in your original post...? >> >> However, after rereading my original post, my question seemed clear >> enough: how do I open a new _blank target window from codebehind? > > You can't. Code behind is server-side and, as such, has no control over > the client browser - all it can do is send it an HTML stream > > Interaction with the client browser needs to be done with client-side > JavaScript. > > Therefore, the code-behind will need to emit client-side JavaScript in the > HTML stream e.g. > > ClientScript.RegisterStartupScript(GetType(), "open", > "window.open(............);", true); > > Not recommended... > > > -- > Mark Rae > ASP.NET MVP > http://www.markrae.net "Craig" <notforl***@radicalage.com> wrote in message *** [please don't top-post] ***news:E7773918-7CFC-49BF-89C7-8F1E3262D657@microsoft.com... > This is as I understood it, but I thought (hoped) that there might be some > trick I was unaware of. http://www.caliburn.nl/topposting.html
Other interesting topics
App_Code class call funcrion in aspx.cs file?
autoincrement vs uniqueidentifier (easy) Is Delegation Necessary? session state time out Urgent - Issues with using Office 2003 PIA on Windows Server 2008 Data binding etc ASPNET or Network Service account on Vista Home Premium Trap Data Tier Errors? Using Access mdb file with Web Site Administration Tool Going to a link but need to log in. |
|||||||||||||||||||||||