Showing posts with label solve. Show all posts
Showing posts with label solve. 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

hallo,
i'm going to ask a solution for a "classic" problem. actually i read a
lot about possible solutions to it but i was not able to solve it.
the "patient" is:
- a test server where i have "limited" power (alias, i cannot re-
install everything i want :-/)
- Windows 2000 sp 4 w/ iis 5.0
- .net frameworks installed: 1.0, 1.1, 2.0
- a bunch of *working* webapplications associated w/ framework 1.1
- a web application which does not work associated w/ framework 2.0 (i
checked the associations with the ASPNETVersionSwitcher tool)
symptoms:
- when i load the not-working application via browser, i get the red
error message "Server Application Unavailable"
- i checked the Event Viewer, here is what it says:
1. aspnet_wp.exe (PID: 2620) stopped unexpectedly.
2. Failed to execute the request because the ASP.NET process identity
does not have read permissions to the global assembly cache. Error:
0x80004005 Unspecified error
what i did:
- i read these two articles telling how to set the permission for
<machinename>\ASPNET account:
http://forums.microsoft.com/MSDN/Sh...135969&SiteID=1
http://support.microsoft.com/?scid=...B811320&x=9&y=9
still, after having set the permissions as the articles say, the
problem still remains.
do you have any other suggestions?
francesco
PS
all the guides i read say that after installing .net framework v2.0 it
should appear a tab titled "ASP.NET" in the iis web site property
page... that does not happen to me. is that normal?Last time I had error like that ASP.NET did not have any permissions (I
think all it need is read) to the BIN folder of my application
George.
"Francesco Spegni" <francesco.spegni@.gmail.com> wrote in message
news:1174993540.662501.226120@.l77g2000hsb.googlegroups.com...
> hallo,
> i'm going to ask a solution for a "classic" problem. actually i read a
> lot about possible solutions to it but i was not able to solve it.
> the "patient" is:
> - a test server where i have "limited" power (alias, i cannot re-
> install everything i want :-/)
> - Windows 2000 sp 4 w/ iis 5.0
> - .net frameworks installed: 1.0, 1.1, 2.0
> - a bunch of *working* webapplications associated w/ framework 1.1
> - a web application which does not work associated w/ framework 2.0 (i
> checked the associations with the ASPNETVersionSwitcher tool)
> symptoms:
> - when i load the not-working application via browser, i get the red
> error message "Server Application Unavailable"
> - i checked the Event Viewer, here is what it says:
> 1. aspnet_wp.exe (PID: 2620) stopped unexpectedly.
> 2. Failed to execute the request because the ASP.NET process identity
> does not have read permissions to the global assembly cache. Error:
> 0x80004005 Unspecified error
> what i did:
> - i read these two articles telling how to set the permission for
> <machinename>\ASPNET account:
> http://forums.microsoft.com/MSDN/Sh...135969&SiteID=1
> http://support.microsoft.com/?scid=...B811320&x=9&y=9
> still, after having set the permissions as the articles say, the
> problem still remains.
> do you have any other suggestions?
> francesco
> PS
> all the guides i read say that after installing .net framework v2.0 it
> should appear a tab titled "ASP.NET" in the iis web site property
> page... that does not happen to me. is that normal?
>
thanks, but the user (<machine_name>/ASPNET) has access to the bin
directory :-/
On 27 Mar, 13:38, "George Ter-Saakov" <gt-...@.cardone.com> wrote:
> Last time I had error like that ASP.NET did not have any permissions (I
> think all it need is read) to the BIN folder of my application
> George.
> "Francesco Spegni" <francesco.spe...@.gmail.com> wrote in message
> news:1174993540.662501.226120@.l77g2000hsb.googlegroups.com...
>
I think you answered your own question. the ASPNET process cannot read the
GAC. So you need to find out how to grant the proper permissions.
Sounds like you've got a messed up installation. Also, make sure your 2.0
app(s) are running under their OWN application pool.
Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Francesco Spegni" wrote:

> hallo,
> i'm going to ask a solution for a "classic" problem. actually i read a
> lot about possible solutions to it but i was not able to solve it.
> the "patient" is:
> - a test server where i have "limited" power (alias, i cannot re-
> install everything i want :-/)
> - Windows 2000 sp 4 w/ iis 5.0
> - .net frameworks installed: 1.0, 1.1, 2.0
> - a bunch of *working* webapplications associated w/ framework 1.1
> - a web application which does not work associated w/ framework 2.0 (i
> checked the associations with the ASPNETVersionSwitcher tool)
> symptoms:
> - when i load the not-working application via browser, i get the red
> error message "Server Application Unavailable"
> - i checked the Event Viewer, here is what it says:
> 1. aspnet_wp.exe (PID: 2620) stopped unexpectedly.
> 2. Failed to execute the request because the ASP.NET process identity
> does not have read permissions to the global assembly cache. Error:
> 0x80004005 Unspecified error
> what i did:
> - i read these two articles telling how to set the permission for
> <machinename>\ASPNET account:
> http://forums.microsoft.com/MSDN/Sh...135969&SiteID=1
> http://support.microsoft.com/?scid=...B811320&x=9&y=9
> still, after having set the permissions as the articles say, the
> problem still remains.
> do you have any other suggestions?
> francesco
> PS
> all the guides i read say that after installing .net framework v2.0 it
> should appear a tab titled "ASP.NET" in the iis web site property
> page... that does not happen to me. is that normal?
>
On 28 Mar, 01:01, Peter Bromberg [C# MVP]
<pbromb...@.yahoo.yabbadabbadoo.com> wrote:
> I think you answered your own question. the ASPNET process cannot read the
> GAC. So you need to find out how to grant the proper permissions.
> Sounds like you've got a messed up installation. Also, make sure your 2.0
> app(s) are running under their OWN application pool.
> Peter
uhm,
i'm not an expert in iis but i think that application pools are
configurable for iis 6 or successive ones, while i'm using iis 5. am i
wrong? if i'm wrong, could you point me to some documentation about
that?
moreover: which files is the GAC made of, actually? just the ones in
%windir%\assembly? i'm asking you this because i've already checked
they are readable by ASPNET user.
thanks
francesco