473,398 Members | 2,525 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,398 software developers and data experts.

how to open a popup box using anchor tag

hi all..can anyone tell me how open an aspx web page as a popup box(small sized window) using anchor tag in ASP.Net....will be thankful for any suggestion...
Jan 4 '08 #1
6 6270
kenobewan
4,871 Expert 4TB
Have you tried using an onclick event?
Jan 4 '08 #2
i tried using the code as follows but its not opening any window...

Expand|Select|Wrap|Line Numbers
  1.   ht.Write("<a href=\"#\" onClick=\"openWin()\">clickme</a>");
  2.  
the above code is one of the statements in a mail sending block...this code makes a link "clickme" to appear in the mail which i get, but upon clicking that its not opening a window....

Have you tried using an onclick event?
Jan 4 '08 #3
kunal pawar
297 100+
ht.Write("<a href='javascript:openWin("+ url +");'>clickme</a>");

try this one
Jan 5 '08 #4
thx for ur reply..i tried that but it dint work...its opening another window but the address bar has "javascript:openWin(www.xyz.com)" and the contents fo the page are page cant be displayed....please suggest me another approach if u have any......thx ..
ht.Write("<a href='javascript:openWin("+ url +");'>clickme</a>");

try this one
Jan 7 '08 #5
kunal pawar
297 100+
Ok, it my misstake.

this will definatly work

ht.Write("<a href='#' onclick=javascript:openWin('"+ url +"');>clickme</a>");
Jan 9 '08 #6
thx for ur reply...i tried but its still not working......if i click the link in the mail its not even opening up a new window.....no action is taking place if i click the link.....u have any other way to do...if so plz suggest me...soon....


Ok, it my misstake.

this will definatly work

ht.Write("<a href='#' onclick=javascript:openWin('"+ url +"');>clickme</a>");
Jan 9 '08 #7

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

Similar topics

2
by: Enjoy Life | last post by:
We have an ASP site that hits up an Access database of categories of products and products. (e.g. Categories = Napkins, Tablecloths; Products = 20x20 Napkins, 21x21 Napkins, 54x54 Tablecloths,...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
5
by: Todd Cary | last post by:
When the surfer clicks on the anchor, I would like to have a new window open. Can this be done? This is what I have tried: <!-- function MM_openBrWindow(theURL,winName,features) {...
11
by: sri_san | last post by:
Hello, I am working on a page where I need to open a new webpage on a button click. I tried using javascript's window.open but with popup blocker enabled, it doesnt seem to work. Any way to get...
4
by: Rusty | last post by:
Hi, I've seen something on a web site that I want to do for our Intranet web site. I'm not advocating pop-ups but for our company app, this would be perfect. Please go to this page and hold...
19
by: Sonnich | last post by:
Hi! I have used JS, but I am still new to it. I have something like this: oNewWindow = new Object(); oNewWindow = open("sonnich.xls","Qopen","resizable=yes,scroll=yes, status=yes,...
1
by: saikatbose2005 | last post by:
Hi, Ineed some help from anyone regarding an issue I'm facing. I've created an image dynamically on clicking a button. What I inetend to do is when I click on the created image it will popup a...
2
by: ravitunk | last post by:
hi all..i have an ASP.net website which sends Emails....these mails have a link(created with anchor tag).....i want to open a popup box(another aspx window) upon clicking that link....can anyone tell...
1
by: chris f | last post by:
Some of the cells in my ASP.NET 2 table have a popup that appears when the user hovers the mouse over a text area that is indicated using an anchor tag. The popup is implemented as a DIV tag...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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,...
0
isladogs
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...

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.