.NETGURU
javascript popup ?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngclient' list.


Nick
-- Moved from [aspngdatagridrepeaterdatalist] to [aspngclient] by mrpike <Click here to reveal e-mail address> --

can any body help me to add Javascript:window.open in this script ?
<a runat="server" href='(<%# "moreinfo.aspx?id=" + DataBinder.Eval(Container.DataItem,"cekidall") %>' ID="A1">TEST</a>

Reply to this message...
 
    
Yossi Dahan
You have two options to open a new window from an A tag -
1. use the target="_blank" property for the tag (i.e. <a
href="moreinfo.aspx" target=_Blank">
2. use javascript - <a href="javascript:void(0)"
onclick="window.open('moreinfo.aspx');">

-----Original Message-----
From: Nick [mailto:Click here to reveal e-mail address]
Sent: Monday, August 05, 2002 12:03 PM
To: aspngclient
Subject: [aspngclient] javascript popup ?

-- Moved from [aspngdatagridrepeaterdatalist] to [aspngclient] by mrpike
<Click here to reveal e-mail address> --

can any body help me to add Javascript:window.open in this script ?
<a runat="server" href='(<%# "moreinfo.aspx?id=" +
DataBinder.Eval(Container.DataItem,"cekidall") %>' ID="A1">TEST</a>
| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

Reply to this message...
 
    
Peter Brunone

There is a third option; you can add the javascript function directly to
the href property, i.e.

<a href="javascript:myWindowFunction('moreinfo.aspx')">

Then in myWindowFunction, you can specify the size of the window, whether or
not to include toolbars, etc. This is generally preferable to the onClick()
attribute since clicking the A tag is already natively supported by the href
attribute.

Regards,

Peter

----- Original Message -----
From: "Yossi Dahan" Click here to reveal e-mail address

| You have two options to open a new window from an A tag -
| 1. use the target="_blank" property for the tag (i.e. <a
| href="moreinfo.aspx" target=_Blank">
| 2. use javascript - <a href="javascript:void(0)"
| onclick="window.open('moreinfo.aspx');">
|
| -----Original Message-----
| From: Nick [mailto:Click here to reveal e-mail address]
|
| can any body help me to add Javascript:window.open in this script ?
| <a runat="server" href='(<%# "moreinfo.aspx?id=" +
| DataBinder.Eval(Container.DataItem,"cekidall") %>' ID="A1">TEST</a>
| | [aspngclient] member Click here to reveal e-mail address = YOUR ID
| | http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT
|
| | [aspngclient] member Click here to reveal e-mail address = YOUR ID
| | http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT
|

Reply to this message...
 
    
Nick
how about if i using <asp:linkbutton> ??
----- Original Message -----
From: "Yossi Dahan" <Click here to reveal e-mail address>
To: "aspngclient" <Click here to reveal e-mail address>
Sent: Monday, August 05, 2002 6:53 PM
Subject: [aspngclient] RE: javascript popup ?

[Original message clipped]

Reply to this message...
 
 
System.ComponentModel.Container
System.Web.UI.DataBinder




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification