Showing posts with label window. Show all posts
Showing posts with label window. Show all posts

Thursday, March 22, 2012

Serve CSV file in new window

Hi,

Really stuck with this one, or the fact that I have just had a baby
maybe mind mind is in meltdown and I cant figure how to solve this!

I have a list of users stored in session. These users are displayed in
a list on the admin web page and I would like to give the
administrator a dropdown of actions on this list. For example, print
this list, Email this list etc.

The print list actually creates a PDF document so the admin can do what
they like with it, so this is where I get hazy....

How do I open this PDF in a new window on a form submit? For example
with a link thats fine, target="_blank" but the form is posted back to
the server and I realise that there is no way of doing this at the
server, so at the moment I have a literal js statement that is set
visible true and this opens the new window when the page is rendered
after the postback.. This strikes me as *ahem* "not the best way" for
example with popup blockers etc.

Is there a way to render the page to a new window? I was perhaps
thinking of creating a PDF HTTPhandler which would force a download
which I hope will not move the window from the orignal page? Is this
the correct way?

Any help appreciated

Many thanks

RichardAdd the target attribute to the form.

<form action="your pdf creating page.aspx" target="_blank">

"rgparkins" <rgparkins@.hotmail.comwrote in message
news:1162809188.972941.278650@.m7g2000cwm.googlegro ups.com...

Quote:

Originally Posted by

Hi,
>
Really stuck with this one, or the fact that I have just had a baby
maybe mind mind is in meltdown and I cant figure how to solve this!
>
I have a list of users stored in session. These users are displayed in
a list on the admin web page and I would like to give the
administrator a dropdown of actions on this list. For example, print
this list, Email this list etc.
>
The print list actually creates a PDF document so the admin can do what
they like with it, so this is where I get hazy....
>
How do I open this PDF in a new window on a form submit? For example
with a link thats fine, target="_blank" but the form is posted back to
the server and I realise that there is no way of doing this at the
server, so at the moment I have a literal js statement that is set
visible true and this opens the new window when the page is rendered
after the postback.. This strikes me as *ahem* "not the best way" for
example with popup blockers etc.
>
Is there a way to render the page to a new window? I was perhaps
thinking of creating a PDF HTTPhandler which would force a download
which I hope will not move the window from the orignal page? Is this
the correct way?
>
Any help appreciated
>
Many thanks
>
Richard
>


Hi Aidy

Hi Aidy thanks for your reply.. I understand that the web page in .NET
is contained within a single form element and I have many buttons and
links in this page as well as my dropdown & Go button to print labels,
print envelopes as options.. I cannot see how to add this target onto
just the dropdown and Go Button. I presume that if I add this to the
form element then all the buttons will form a new window?

Thanks again for your help

Rich

Aidy wrote:

Quote:

Originally Posted by

Add the target attribute to the form.
>
<form action="your pdf creating page.aspx" target="_blank">
>
"rgparkins" <rgparkins@.hotmail.comwrote in message
news:1162809188.972941.278650@.m7g2000cwm.googlegro ups.com...

Quote:

Originally Posted by

Hi,

Really stuck with this one, or the fact that I have just had a baby
maybe mind mind is in meltdown and I cant figure how to solve this!

I have a list of users stored in session. These users are displayed in
a list on the admin web page and I would like to give the
administrator a dropdown of actions on this list. For example, print
this list, Email this list etc.

The print list actually creates a PDF document so the admin can do what
they like with it, so this is where I get hazy....

How do I open this PDF in a new window on a form submit? For example
with a link thats fine, target="_blank" but the form is posted back to
the server and I realise that there is no way of doing this at the
server, so at the moment I have a literal js statement that is set
visible true and this opens the new window when the page is rendered
after the postback.. This strikes me as *ahem* "not the best way" for
example with popup blockers etc.

Is there a way to render the page to a new window? I was perhaps
thinking of creating a PDF HTTPhandler which would force a download
which I hope will not move the window from the orignal page? Is this
the correct way?

Any help appreciated

Many thanks

Richard


there is no way to make the decision server side. you need to do it client
side. client code could change the form target.

-- bruce (sqlwork.com)

"rgparkins" <rgparkins@.hotmail.comwrote in message
news:1162809188.972941.278650@.m7g2000cwm.googlegro ups.com...

Quote:

Originally Posted by

Hi,
>
Really stuck with this one, or the fact that I have just had a baby
maybe mind mind is in meltdown and I cant figure how to solve this!
>
I have a list of users stored in session. These users are displayed in
a list on the admin web page and I would like to give the
administrator a dropdown of actions on this list. For example, print
this list, Email this list etc.
>
The print list actually creates a PDF document so the admin can do what
they like with it, so this is where I get hazy....
>
How do I open this PDF in a new window on a form submit? For example
with a link thats fine, target="_blank" but the form is posted back to
the server and I realise that there is no way of doing this at the
server, so at the moment I have a literal js statement that is set
visible true and this opens the new window when the page is rendered
after the postback.. This strikes me as *ahem* "not the best way" for
example with popup blockers etc.
>
Is there a way to render the page to a new window? I was perhaps
thinking of creating a PDF HTTPhandler which would force a download
which I hope will not move the window from the orignal page? Is this
the correct way?
>
Any help appreciated
>
Many thanks
>
Richard
>

Serve CSV file in new window

Hi,
Really stuck with this one, or the fact that I have just had a baby
maybe mind mind is in meltdown and I cant figure how to solve this!
I have a list of users stored in session. These users are displayed in
a list on the admin web page and I would like to give the
administrator a dropdown of actions on this list. For example, print
this list, Email this list etc.
The print list actually creates a PDF document so the admin can do what
they like with it, so this is where I get hazy....
How do I open this PDF in a new window on a form submit? For example
with a link thats fine, target="_blank" but the form is posted back to
the server and I realise that there is no way of doing this at the
server, so at the moment I have a literal js statement that is set
visible true and this opens the new window when the page is rendered
after the postback.. This strikes me as *ahem* "not the best way" for
example with popup blockers etc.
Is there a way to render the page to a new window? I was perhaps
thinking of creating a PDF HTTPhandler which would force a download
which I hope will not move the window from the orignal page? Is this
the correct way?
Any help appreciated
Many thanks
RichardAdd the target attribute to the form.
<form action="your pdf creating page.aspx" target="_blank">
"rgparkins" <rgparkins@.hotmail.com> wrote in message
news:1162809188.972941.278650@.m7g2000cwm.googlegroups.com...
> Hi,
> Really stuck with this one, or the fact that I have just had a baby
> maybe mind mind is in meltdown and I cant figure how to solve this!
> I have a list of users stored in session. These users are displayed in
> a list on the admin web page and I would like to give the
> administrator a dropdown of actions on this list. For example, print
> this list, Email this list etc.
> The print list actually creates a PDF document so the admin can do what
> they like with it, so this is where I get hazy....
> How do I open this PDF in a new window on a form submit? For example
> with a link thats fine, target="_blank" but the form is posted back to
> the server and I realise that there is no way of doing this at the
> server, so at the moment I have a literal js statement that is set
> visible true and this opens the new window when the page is rendered
> after the postback.. This strikes me as *ahem* "not the best way" for
> example with popup blockers etc.
> Is there a way to render the page to a new window? I was perhaps
> thinking of creating a PDF HTTPhandler which would force a download
> which I hope will not move the window from the orignal page? Is this
> the correct way?
> Any help appreciated
> Many thanks
> Richard
>
Hi Aidy
Hi Aidy thanks for your reply.. I understand that the web page in .NET
is contained within a single form element and I have many buttons and
links in this page as well as my dropdown & Go button to print labels,
print envelopes as options.. I cannot see how to add this target onto
just the dropdown and Go Button. I presume that if I add this to the
form element then all the buttons will form a new window?
Thanks again for your help
Rich
Aidy wrote:
> Add the target attribute to the form.
> <form action="your pdf creating page.aspx" target="_blank">
> "rgparkins" <rgparkins@.hotmail.com> wrote in message
> news:1162809188.972941.278650@.m7g2000cwm.googlegroups.com...
there is no way to make the decision server side. you need to do it client
side. client code could change the form target.
-- bruce (sqlwork.com)
"rgparkins" <rgparkins@.hotmail.com> wrote in message
news:1162809188.972941.278650@.m7g2000cwm.googlegroups.com...
> Hi,
> Really stuck with this one, or the fact that I have just had a baby
> maybe mind mind is in meltdown and I cant figure how to solve this!
> I have a list of users stored in session. These users are displayed in
> a list on the admin web page and I would like to give the
> administrator a dropdown of actions on this list. For example, print
> this list, Email this list etc.
> The print list actually creates a PDF document so the admin can do what
> they like with it, so this is where I get hazy....
> How do I open this PDF in a new window on a form submit? For example
> with a link thats fine, target="_blank" but the form is posted back to
> the server and I realise that there is no way of doing this at the
> server, so at the moment I have a literal js statement that is set
> visible true and this opens the new window when the page is rendered
> after the postback.. This strikes me as *ahem* "not the best way" for
> example with popup blockers etc.
> Is there a way to render the page to a new window? I was perhaps
> thinking of creating a PDF HTTPhandler which would force a download
> which I hope will not move the window from the orignal page? Is this
> the correct way?
> Any help appreciated
> Many thanks
> Richard
>

Tuesday, March 13, 2012

Server Application Unavailable

Hi there!

I was installed .NET Framework in Window 2000. Create one New site, it's pointed to my .NET file folder. when i was run my asp.net programme I will get the following error in the browser.

Server Application Unavailable
The web application you are
attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing
the cause of this specific request
failure can be found in the system event
log of the web server. Please review this
log entry to discover what caused this error to occur.

I am using IE 6. Also aspnet_State.exe is running. How can i configure that.

Thanks in Advance
AbiFollow the link:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q315158