Hi,
I am trying to create a simple popup window which will display details
about a product.
So far i have been trying the javascript idea:
<script language="jscri pt">
function popup()
{
window.open(... ......)
}
</script>
then on an asp:linkButton, i call this funtion with an OnClick action.
i also am including a vb.net file as the code behind.
i get the error
'popup' is not a member of 'ASP.myfilename _aspx'.
is there a way in asp.net (vb) to produce a sized popup window?
thanks 4 1268
TheDude,
I have a javascript object that I give away for free (with source code)
there's a demo here: http://www.aboutfortunate.com?page=javascriptdemo
You'll want #5.
It contains a few commonly used javascripts one of which is a pop-up window.
The original code is a .net 1.1 project, but it's easily converted to 2.0.
I'm meaning to convert all the code samples on my site to 2.0 but just
haven't had time yet.
Anyway if you grab that source code it will let you easily hook up a popup
window to almost any control you'd like.
If you need to convert the code and have any trouble or just have a question
feel free to contact me (anyone).
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"TheDude5B" <ti*******@gmai l.com> wrote in message
news:11******** *************@j 33g2000cwa.goog legroups.com... Hi,
I am trying to create a simple popup window which will display details about a product.
So far i have been trying the javascript idea:
<script language="jscri pt">
function popup() { window.open(... ......) }
</script>
then on an asp:linkButton, i call this funtion with an OnClick action.
i also am including a vb.net file as the code behind.
i get the error
'popup' is not a member of 'ASP.myfilename _aspx'.
is there a way in asp.net (vb) to produce a sized popup window?
thanks
"TheDude5B" <ti*******@gmai l.com> wrote in message
news:11******** *************@j 33g2000cwa.goog legroups.com... then on an asp:linkButton, i call this funtion with an OnClick action.
Which means that when you click the LinkButton you're causing a postback.
Either change the LinkButton to a regular HTML button, or add the "onclick"
attribute to the LinkButton so that when the user clicks it it runs the
client-side JavaScript function instead of trying to run a server-side
function
Thanks that has worked great.
Good to hear.
Happy coding!
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"TheDude5B" <ti*******@gmai l.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . Thanks that has worked great. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dom Nicholas |
last post by:
Hi,
My question is this : how do I detect from
another window which didn't create a new window whether
it exists ? For example, is there a window-id's container
of some sort that hangs around that I can interrogate ?
I would like to find a better way of doing the following.
I have a window (call it Win) that creates a new window (call it Win2)
using window.open().
|
by: Newbie |
last post by:
Hello, I want to ask something about popup window...
when a popup window is appear, how can I force users to focus on it?
P.S. I mean that not just focus once only(not onLoad(this.focus)..)
And..
If users do not close the popup window, they can't move to other IE
P.S. I want to make a popup window just like a javascript error/confirm message box
|
by: Newbie |
last post by:
Hello all~
I have got some questions about popup window, hope that someone can
help me..
m(_ _)m~thx~
when a popup window appear, can I force users to focus on the popup
window "ONLY"
that mean, if users don't close the popup window, they can't do
anything to other ie window(include close the opener window...etc)
|
by: Reply Via Newsgroup |
last post by:
Folks,
Windows, and refering to them (be they in seperate frames or in a popup)
always catch me... There is parent, top, self, the name of the window
itself and where it sits when refering to its full property name... It
drives me up the wall that I can't get this right after six months or so...
Before someone gives me a spiel on not using popups:
1) It is for an intranet LAMP based application and
|
by: Randell D. |
last post by:
Folks,
I have a javascript function which is a popup - It contains a list in
form tags - When the user selects a value in the popup, and clicks
submit, I want the values to be transfered to the parent opening window.
I have managed this when I know the name of the parent window - however
there are two or three different 'parent' forms with different form
names that could reference this popup session meaning my current
solution only...
| |
by: Jim Davis |
last post by:
The scenario: 1) Generate a popup window via script. 2) Populate it (again
via script) with content that features local (hash) links.
In IE 6.x this works - the links work as they should, moving the document to
that document position. However in FireFox 1.x the links load the main page
(the opener) in to the popup.
Both browsers populate the location.href of the popup with the main page's
href... but this only adversly affects...
|
by: Joseph Burton |
last post by:
When I put this code in my load function it works just fine.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
RegisterStartupScript("", "<script language='JavaScript'> CreateWnd
('PleaseWait.aspx', 500, 50, false); </script>")
End Sub
But when I put it in another server control it doesn't work:
|
by: ALGARCIA |
last post by:
hi, i have a problem when i return a value from my popup y have master in my
parent page and in my popup i don't have one, y have a function like this in
the popup page :
function BotonClicRem(id)
{
window.opener.updateRem1(id);
window.close();
}
|
by: Merlin Morgenstern |
last post by:
Hi there,
I do have a JS-function that does open windows in a specific format to
display small pices of information, like member comments.
Since a while I have found that this will not work on some systems. For
example a user told me that since he is on vista the page does not open
anymore, but the page where he clicked on the link opens the homepage.
I found for myself, that the pixel specifications do not work on all
systems. It...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |