473,394 Members | 1,693 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,394 software developers and data experts.

opening a pop-up window

34
Hey all

i want to open up a pop up window when i select a checkbox in the gridview..

any suggestions?

Using VB.NET language..
Aug 6 '08 #1
5 2128
Hi

If the checkbox is a servercontrol then you can add javascript attributes to it like

checkbox1.attributes.add("Oncheckchange", "javascript:function()");

so everytime you change the textbox this perticular javascript function will fired where you can open a popup window.
Aug 6 '08 #2
kenobewan
4,871 Expert 4TB
One way is using a clientside event using attribute add method to the object. Another option, you could use a register client script instead from a serverside event. HTH.
Aug 6 '08 #3
mirainc
34
Hi

If the checkbox is a servercontrol then you can add javascript attributes to it like

checkbox1.attributes.add("Oncheckchange", "javascript:function()");

so everytime you change the textbox this perticular javascript function will fired where you can open a popup window.
So does that mean that i cant open up a pop up window at all in Visual Web Developer?
Aug 7 '08 #4
Curtis Rutland
3,256 Expert 2GB
Visual Web Developer is an IDE, not a language.

But yes, you must use javascript for a web popup. Always remember that ASP.NET is server side only. The browser doesn't see your code, it sees the result of your code compiled and executed on the server.
Aug 7 '08 #5
use this code to get a pop up screen after add a webpage to your project.


Dim sCode As String = "window.open('yourPageName.aspx', '_blank');"
Page.ClientScript.RegisterStartupScript(Me.[GetType](), "CallAshx", sCode, True)
Dec 2 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
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,...
1
by: John Henry | last post by:
Can somebody please tell me how to pop open a drive folder from a Python script? Thanks. -- John
6
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...
3
by: Usman | last post by:
Hi All, Is there a way that if I know the IP address of a computer, I can open a popup window on that IP remotely from another computer? It is somewhat similar to netsend but the type of window...
0
by: Philipp Lenssen | last post by:
My colleague wants to start a HTML from CD (no internet connection). This ought to open Internet Explorer, but with Service Pack 2 all pop-ups are disabled. The question: is there a way for...
15
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: ...
1
by: Charlie | last post by:
Hi: Is there a way to pop open a mail client and pass in a text string for the subject and possibly other parts of a standard mail message? The "mailto:" attribute of hyplerlink leaves these...
25
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...
7
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...
13
by: =?Utf-8?B?Q29ubnVsbA==?= | last post by:
I need to open a Cash Drawer from my Windows App when the user issues and prints (Epson Receipt Printer) a Receipt. I beleive I need to pass the printer a string of (#027 + #112 + #000 + #025 +...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.