473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems with popup window

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="jscript">

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

Feb 27 '06 #1
4 1251
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*******@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.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="jscript">

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

Feb 27 '06 #2
"TheDude5B" <ti*******@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.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
Feb 27 '06 #3
Thanks that has worked great.

Feb 27 '06 #4
Good to hear.

Happy coding!

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"TheDude5B" <ti*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Thanks that has worked great.

Feb 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
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...
3
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)..) ...
4
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...
2
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...
4
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...
3
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,...
4
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("",...
0
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.