I have an ASP.NET webapp that generates a shipping label for a
customer. When the user clicks on the label preview gif or on a
"Print..." submit button, the app will open another window with a full
sized label.
Before I installed SP2 my workstation, all worked fine. However, now
with SP2 it opens the label window, but the page doesn't load in the
browser. When debugging in VS.NET, the Page_Init of the pop-up page
does not even run. This is only an issue with IE and no other
browsers. I've done about every Security setting in the Internet
Options as well (and turned off popup blocking).
Here is a rundown of what the code is like:
1. The LabelPreview.as px page has a Print button that generates a
script to open a pop-up window:
Dim popUpWindow As String =
"<scriptlanguag e='javascript'> window.open('Pr intView.aspx')</script>"
RegisterStartup Script("popUpWi ndow", popupWindow)
2. PrintView.aspx uses another aspx page as an image (example; <img
src="Label.aspx ">) and has behind-code that writes to an internal
database...note : the Page_Init in the behind-code is not firing.
3. Label.aspx is used to stream the image. Tt has mLabel as a member
object which is coming from a session variable that was generated even
before the user reaches these pages:
Dim stream As MemoryStream = New MemoryStream
Dim buffer As Byte()
mLabel = Session("objLab el")
mLabel.Image.Sa ve(stream, Imaging.ImageFo rmat.Png)
buffer = stream.ToArray
Response.Conten tType = "multipart/mixed"
Response.Output Stream.Write(bu ffer, 0, buffer.Length)
Response.Output Stream.Flush()
Response.Output Stream.Close()
stream.Close()
I am at a complete loss as to why this is not working. Anyone else
experience this...any ideas are extremely appreciated.
- Richard 3 3753
Please see release notes for SP2. Popup Windows are now blocked by default.
The code must be fired by user interaction. When you use a click event and
generate the JS code, you are actually doing a postback to the server and
coming back with a new page that is attempting to load a popup window
"automatically" . That is why it gets blocked. Change your code to have an
HTML button that fires the popup window.
Good Luck!
"Richard" <ri*********@gm ail.com> wrote in message
news:cg******** @odak26.prod.go ogle.com... I have an ASP.NET webapp that generates a shipping label for a customer. When the user clicks on the label preview gif or on a "Print..." submit button, the app will open another window with a full sized label.
Before I installed SP2 my workstation, all worked fine. However, now with SP2 it opens the label window, but the page doesn't load in the browser. When debugging in VS.NET, the Page_Init of the pop-up page does not even run. This is only an issue with IE and no other browsers. I've done about every Security setting in the Internet Options as well (and turned off popup blocking).
Here is a rundown of what the code is like:
1. The LabelPreview.as px page has a Print button that generates a script to open a pop-up window:
Dim popUpWindow As String = "<scriptlanguag e='javascript'> window.open('Pr intView.aspx')</script>" RegisterStartup Script("popUpWi ndow", popupWindow)
2. PrintView.aspx uses another aspx page as an image (example; <img src="Label.aspx ">) and has behind-code that writes to an internal database...note : the Page_Init in the behind-code is not firing.
3. Label.aspx is used to stream the image. Tt has mLabel as a member object which is coming from a session variable that was generated even before the user reaches these pages:
Dim stream As MemoryStream = New MemoryStream Dim buffer As Byte()
mLabel = Session("objLab el")
mLabel.Image.Sa ve(stream, Imaging.ImageFo rmat.Png) buffer = stream.ToArray Response.Conten tType = "multipart/mixed" Response.Output Stream.Write(bu ffer, 0, buffer.Length) Response.Output Stream.Flush() Response.Output Stream.Close() stream.Close()
I am at a complete loss as to why this is not working. Anyone else experience this...any ideas are extremely appreciated.
- Richard
Hi,
Ok I assume this is a typo
<scriptlanguage ='javascript'>
How is that script linked to the Print button......?
Zonealarm on the system... ( Kills the most basic of scripts even it's told
to leave alone )
I have not had a single problem with any app I have made on SP2...
Send me complete code and I will look it over if you want
--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Visual: Scripting MVP 2000-2004 http://www.icysoft.com/ http://www.deus-x.com/ Instant e-commerce http://www.microsoft.com/technet/scriptcenter/
Playground: http://213.190.104.211/ ( IE 5.5+ only )
No matter where you go there you are
=============== ===============
"Richard" <ri*********@gm ail.com> wrote in message
news:cg******** @odak26.prod.go ogle.com... I have an ASP.NET webapp that generates a shipping label for a customer. When the user clicks on the label preview gif or on a "Print..." submit button, the app will open another window with a full sized label.
Before I installed SP2 my workstation, all worked fine. However, now with SP2 it opens the label window, but the page doesn't load in the browser. When debugging in VS.NET, the Page_Init of the pop-up page does not even run. This is only an issue with IE and no other browsers. I've done about every Security setting in the Internet Options as well (and turned off popup blocking).
Here is a rundown of what the code is like:
1. The LabelPreview.as px page has a Print button that generates a script to open a pop-up window:
Dim popUpWindow As String = "<scriptlanguag e='javascript'> window.open('Pr intView.aspx')</script>" RegisterStartup Script("popUpWi ndow", popupWindow)
2. PrintView.aspx uses another aspx page as an image (example; <img src="Label.aspx ">) and has behind-code that writes to an internal database...note : the Page_Init in the behind-code is not firing.
3. Label.aspx is used to stream the image. Tt has mLabel as a member object which is coming from a session variable that was generated even before the user reaches these pages:
Dim stream As MemoryStream = New MemoryStream Dim buffer As Byte()
mLabel = Session("objLab el")
mLabel.Image.Sa ve(stream, Imaging.ImageFo rmat.Png) buffer = stream.ToArray Response.Conten tType = "multipart/mixed" Response.Output Stream.Write(bu ffer, 0, buffer.Length) Response.Output Stream.Flush() Response.Output Stream.Close() stream.Close()
I am at a complete loss as to why this is not working. Anyone else experience this...any ideas are extremely appreciated.
- Richard
Sorry I haven't responded to this recently, but I haven't needed to
investigate this problem again until recently.
Petursson, yes, that was a typo...and the script is linked to a
asp:button and thus runs a registered script (code behind includes the
Page.RegisterSt artupScript function).
I'm not comfortable without having an explanation, but all runs fine
now and I don't have a clue what is different. I'm not sure if SP2 had
some additional updates that fixed this issue, or if it is from the
GDI+ updates included with the newer security patches.
All I can say is that I tested this in late August 2004 with a
workstation and a laptop when SP2 was new, both with XP Professional,
both with the same results. Come late 2004, and the problem as been
fixed without me changing code. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Roy Smith |
last post by:
In the recent "transforming a list into a string" thread, we've been
discussing the fact that list.pop() is O(1), but list.pop(0) is O(n). I
decided to do a little timing experiment. To be sure, I did verify
experimentally the expected result, but along the way, I came upon an
interesting artifact that I'm at a loss to explain.
I used the following to generate some timing numbers for pop() on
various sized lists:
import time
|
by: Andre |
last post by:
Hi guys, newbie question. I am having trouble with a script that is
supposed to login me to my account on yahoo pop server. When i do this:
import getpass, poplib, re
POPHOST = "pop.mail.yahoo.com"
POPUSER = "mylogin"
POPPASS = "mypass"
pop = poplib.POP3(POPHOST)
|
by: spencer |
last post by:
Hi,
The code.
def buildStackMajor():
for node in dirStackMinor:
#print 's is the node...', node
dirStackMajor.append(node)
dirStackMinor.pop()
print 'POP the stack...', len(dirStackMinor)
print 'after pop...', dirStackMinor
|
by: Will |
last post by:
Hi,
Sorry to be a pest...
But I can figure this out.
I'm pushing to a stack. then I need to check to see if the word is a
palindrome.
Is the code below correct?
if so, how can I check the entire word?
|
by: John Hoge |
last post by:
I would like to open an exit pop when a user leaves my site, but I
don't want to the back button to trigger the pop if the user remains
in my site.
I'm using the onUnload attribute of the Body tag to do this. All
internal links set a variable of inSite to true on their onClick event
handler, so the exit pop will not open if the user follows an internal
link.
Should the user hit the back button, the pop will be displayed. Is
| |
by: Stig Brautaset |
last post by:
Hi group,
I'm playing with a little generic linked list/stack library, and have a
little problem with the interface of the pop() function. If I used a
struct like this it would be simple:
struct node {
struct node *next;
void *data;
};
|
by: Nicholas Parsons |
last post by:
Howdy Folks,
I was just playing around in IDLE at the interactive prompt and typed
in dir({}) for the fun of it. I was quite surprised to see a pop
method defined there. I mean is that a misnomer or what? From the
literature, pop is supposed to be an operation defined for a stack
data structure. A stack is defined to be an "ordered" list data
structure. Dictionaries in Python have no order but are sequences.
Now, does anyone know...
|
by: Scott |
last post by:
As said before I'm new to programming, and I need in depth explaination to
understand everything the way I want to know it, call it a personality quirk
;p.
With pop() you remove the last element of a list and return its value:
Now I know list is a bad name, but for the sake of arguement lets assume its
not a built in sequence>
'example'
|
by: j_depp_99 |
last post by:
The program below fails on execution and I think the error is in my
pop function but it all looks correct.Also could someone check my code
as to why my print function is not
working? I havent included the other parts of my program but will if
someone needs it. Please help; I have had it. I have checked all C++
websites and cannot figure it out.
<code>
template<class Type>
void Novice<Type>::Print()
|
by: merrittr |
last post by:
I need some C advice I want to read in string commands from a user
when the user enters a \n
I want to push it on the stac. Then at some point , if the user enters
the word print pop off and print each word (or using another stack
pointer scan the stack printing each string). here is a stub of what i
want to do. (how do I implement this currently my code doesn't work
due to my lack of strings and pointers)
#include <stdio.h>
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |