Home All Groups Group Topic Archive Search About

context response or server.transfer to target = _blank

Author
9 Jul 2009 6:47 PM
Craig
Hello,

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

Author
9 Jul 2009 7:47 PM
Mark Rae [MVP]
"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
Are all your drivers up to date? click for free checkup

Author
9 Jul 2009 8:12 PM
Craig
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
Author
9 Jul 2009 8:52 PM
Mark Rae [MVP]
"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

Show quoteHide quote
>>> 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
Author
9 Jul 2009 9:07 PM
Craig
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
Author
9 Jul 2009 10:01 PM
Mark Rae [MVP]
"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
Author
9 Jul 2009 10:12 PM
Craig
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
Author
9 Jul 2009 11:08 PM
Mark Rae [MVP]
"Craig" <notforl***@radicalage.com> wrote in message
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.

*** [please don't top-post] ***
http://www.caliburn.nl/topposting.html

Bookmark and Share