Redirection script
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
I have a form which I need to redirect to a file (could be PDF or Word)
which is on the clients local system but I am having touble getting it to
fire the javascript.
In the PageLoad if not a postback I do
string oFileScript = "<script language='javascript'>" +
"window.location='file:///" + fileName + "';</script>";
Page.RegisterStartupScript("OpenFile", openFileScript);
It is like I need it to do another postback to fire the script.
.
Relevant Pages
- RE: ValueChanged Event Doesnt Fire
... trying to work out how I can force a postback. ... I have tried every method I can think of to get the event to fire, ... What I'm doing is using a Javascript function ) to copy ... whatever is typed into the two text boxes to the hidden fields, ... (microsoft.public.dotnet.framework.aspnet) - Re: event firing
... > was not clear enough in my orginal post) is to have the event fire before ... > See, in Page_Load, i need the data that is set in the event code. ... can do some things in the PreRender event, when all of the PostBack events ... (microsoft.public.dotnet.framework.aspnet) - Re: Textbox and OnTextChanged
... if you have AutoPostBack turned off for both of the textboxes (which is ... textboxes will fire, but there will just be one postback. ... The point of AutoPostBack is that *if* the control is manipulated in any way ... (microsoft.public.dotnet.framework.aspnet) - Re: event firing
... In order for an event to fire, a PostBack MUST occur, since the event ... In other words,if your event handler is ... > (after the code in the event is done executing)? ... (microsoft.public.dotnet.framework.aspnet) - Re: AddHandler question
... If you're asking if the Event Handler Method that it refers to will fire ... during the PostBack, and if a client-side event has triggered it. ... A client-side event triggers a PostBack. ... (microsoft.public.dotnet.framework.aspnet) |
|